DrivenPass readme-logo

Usage

$ git clone https://github.com/cassandra-mn/driven-pass.git

$ cd driven-pass

$ npm install

$ npm run dev

API

# Rotas de autenticação:

- POST /sign-up
    - headers: {}
    - body: {
        "email": "email@email.com",
        "password": "password"
      }
    
- POST /sign-in
    - headers: {}
    - body: {
        "email": "email@email.com",
        "password": "password"
      }
    
    
# Rotas de credenciais:

- POST /credentials/create
    - headers: {
        "Authorization": "Bearer $token"
      }
    - body: {
        "title": "title",
        "url": "http://",
        "username": "username",
        "password": "password"
      }
      
- GET /credentials
    - headers: {
        "Authorization": "Bearer $token"
      }
    - body: {}
    
- GET /credentials/:id
    - headers: {
        "Authorization": "Bearer $token"
      }
    - body: {}
    
- DELETE /credentials/delete/:id
    - headers: {
        "Authorization": "Bearer $token"
      }
    - body: {}
    
    
# Rotas de notas seguras:

- POST /notes/create
    - headers: {
        "Authorization": "Bearer $token"
      }
    - body: {
        "title": "title",
        "note": "note"
      }
    
- GET /notes
    - headers: {
        "Authorization": "Bearer $token"
      }
    - body: {}
    
- GET /notes/:id
    - headers: {
        "Authorization": "Bearer $token"
      }
    - body: {}
    
- DELETE /notes/delete/:id
    - headers: {
        "Authorization": "Bearer $token"
      }
    - body: {}
    
    
# Rotas de cartões:

- POST /cards/create
    - headers: {
        "Authorization": "Bearer $token"
      }
    - body: {
        "title": "title",
        "number": "1234123412341234",
        "name": "name",
        "cvc": "123",
        "expirationDate": "10/27",
        "password": "1234",
        "type": "both"
      }
      
- GET /cards
    - headers: {
        "Authorization": "Bearer $token"
      }
    - body: {}
    
- GET /cards/:id
    - headers: {
        "Authorization": "Bearer $token"
      }
    - body: {}
    
- DELETE /cards/delete/:id
    - headers: {
        "Authorization": "Bearer $token"
      }
    - body: {}
    
    
# Rotas de wi-fi:

- POST /wifi/create
    - headers: {
        "Authorization": "Bearer $token"
      }
    - body: {
        "title": "title",
        "name": "name",
        "password": "password"
      }
      
- GET /wifi
    - headers: {
        "Authorization": "Bearer $token"
      }
    - body: {}
    
- GET /wifi/:id
    - headers: {
        "Authorization": "Bearer $token"
      }
    - body: {}
    
- DELETE /wifi/delete/:id
    - headers: {
        "Authorization": "Bearer $token"
      }
    - body: {}
    

# Rotas de documentos:

- POST /docs/create
    - headers: {
        "Authorization": "Bearer $token"
      }
    - body: {
        "fullName": "full name",
        "emissionDate": "01/01/21",
        "validity": "10/31",
        "number": "0123456",
        "issuer": "SSP",
        "type": "RG"
      }
      
- GET /docs
    - headers: {
        "Authorization": "Bearer $token"
      }
    - body: {}
    
- GET /docs/:id
    - headers: {
        "Authorization": "Bearer $token"
      }
    - body: {}
    
- DELETE /docs/delete/:id
    - headers: {
        "Authorization": "Bearer $token"
      }
    - body: {}