Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • A api
  • 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
  • Mentha
  • api
  • Wiki
  • endpoints

Last edited by Christopher Da Rosa Michel Jun 15, 2018
Page history
This is an old version of this page. You can view the most recent version or browse the history.

endpoints

Endpoints

header

key=Authorization

value={app-secret}

Login

POST

https://baas.kinvey.com/user/{app-key}/login

body

{
  "username": "username",
  "password": "password"
}

Exemplo de retorno

{
    "_id": "hash",
    "username": "username",
    "email": "[email protected]",
    "_kmd": {
        "lmt": "2018-04-14T00:40:46.274Z",
        "ect": "2018-04-14T00:40:46.274Z",
        "authtoken": "hash"
    },
    "_acl": {
        "creator": "hash"
    }
}

Pré-cadastro

POST

https://baas.kinvey.com/user/{app-key}

body

 {
    "username": "[email protected]",
    "password": "exemplo",
    "phone1": "994847393",
    "phone2": "947584959",
    "name": "Exemplo da Silva",
    "recordtype": "confea",
    "recordnumber": "39847",
    "address": "Av. Ipiranga, 4000",
    "addresscomplement": "apto 758",
    "cep": "98929838",
    "neighborhood": "Partenon",
    "city": "Porto Alegre",
    "state": "RS"
 }

Exemplo de retorno

{
    "username": "[email protected]",
    "password": "exemplo2",
    "phone1": "994847393",
    "phone2": "947584959",
    "name": "Exemplo2 da Silva",
    "recordtype": "confea",
    "recordnumber": "39847",
    "address": "Av. Ipiranga, 4000",
    "addresscomplement": "apto 758",
    "cep": "98929838",
    "neighborhood": "Partenon",
    "city": "Porto Alegre",
    "state": "RS",
    "verifieduser": false,
    "_kmd": {
        "lmt": "2018-04-18T00:16:03.582Z",
        "ect": "2018-04-18T00:16:03.582Z",
        "authtoken": "d69affd0-b3f1-4826-b15a-afb5df766c1c.OC2HH15oRV24U5cj2PC6FWdQi0zClc9CbmJwiAHYVSU="
            },
    "_id": "5ad68e435aa1301702ff5199",
    "_acl": {
    "creator": "5ad68e435aa1301702ff5199"
    }
}

Organics

POST

https://baas.kinvey.com/appdata/{{app-key}}/Organics

body

{
  "name": "Pera",
  "measurement": "un",
  "image": { "_type":"KinveyFile","_id":"bf0c8005-f64e-4151-af30-878aa0060581" }
}

Sendo que não é possível o cadastro de orgânicos com o mesmo nome e as unidades permitidas até o momento são "un" e "kg".

GET

https://baas.kinvey.com/appdata/{{app-key}}/Organics

Exemplo de retorno

[
    {
        "_id": "5aecef6926860c399a8ff2eb",
        "name": "Abacate",
        "measurement": "un",
        "image": {
            "_id": "403097ff-78f2-4463-9ca0-0251e3f78fa3",
            "_acl": {
               "gr": true,
               "creator": "5ae4cd474c356779d5558984"
            },
            "_filename": "abacate.jpg",
            "_public": true,
            "mimeType": "image/jpeg",
            "size": 236482,
            "_kmd": {
                "lmt": "2018-05-04T23:39:12.218Z",
                "ect": "2018-05-04T23:39:12.218Z"
            },
            "_downloadURL": "http://storage.googleapis.com/f043309f51f746e495a9c4a6a4fae3cf/403097ff-78f2-4463-9ca0-0251e3f78fa3/abacate.jpg",
            "_type": "KinveyFile"
        },
        "_acl": {
            "creator": "5ae4eb534c356779d5562fa0"
        },
        "_kmd": {
            "lmt": "2018-05-04T23:40:25.154Z",
            "ect": "2018-05-04T23:40:25.154Z"
        }
    }
]
Clone repository
  • commit e branches
  • configurar ambiente de desenvolvimento
  • endpoints
  • engenharia de requisitos
  • estrutura analítica do projeto
  • glossario e modelo
  • Home
  • modelagem mongodb
    • 1. visao geral
    • 2. modelo conceitual
    • 2.1. mapeamento
  • reunioes
  • roadmap
  • sprints
  • termo de abertura do projeto
  • ux