Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • W wiki
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GasNaPorta
  • wiki
  • Wiki
  • api rotas

Last edited by Felipe Garrastazu Guedes May 16, 2018
Page history
This is an old version of this page. You can view the most recent version or browse the history.

api rotas

SUPPLIER

GET /supplier/all retorna json com todos os fornecedores

POST /supplier/

{
    name: {type: String, required: true},
    phone: {type: String, required: true},
}

USER

POST /user/

{
    name: {type: String, required: true},
    email: {type: String, required: true, unique: true}, 
    password: {type: String, required: true }
}

LOGIN

POST /login/

{
    email: {type: String, required: true }, 
    password: {type: String, required: true }
}

retorna

        return res.json({
            success: true,
            token: token,
            user: user
        });
Clone repository
  • api rotas
  • api
  • arquitetura
  • design
  • estudo sobre node.js
  • Home
  • kotlin primeiros passos
  • material xml
  • mockups
  • testes sprint 1
  • xml v1