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

endpoints · Changes

Page history
Update endpoints authored May 10, 2018 by Christopher Da Rosa Michel's avatar Christopher Da Rosa Michel
Hide whitespace changes
Inline Side-by-side
endpoints.md
View page @ 45995e7d
...@@ -85,7 +85,7 @@ https://baas.kinvey.com/user/{app-key} ...@@ -85,7 +85,7 @@ https://baas.kinvey.com/user/{app-key}
## Organics ## Organics
### POST ### POST
https://baas.kinvey.com/appdata/{{app-key}}/Harvests https://baas.kinvey.com/appdata/{{app-key}}/Organics
#### body #### body
...@@ -93,4 +93,42 @@ https://baas.kinvey.com/appdata/{{app-key}}/Harvests ...@@ -93,4 +93,42 @@ https://baas.kinvey.com/appdata/{{app-key}}/Harvests
"name": "Pera", "name": "Pera",
"measurement": "un", "measurement": "un",
"image": { "_type":"KinveyFile","_id":"bf0c8005-f64e-4151-af30-878aa0060581" } "image": { "_type":"KinveyFile","_id":"bf0c8005-f64e-4151-af30-878aa0060581" }
} }
\ No newline at end of file
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
[
{
"_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