... | ... | @@ -133,3 +133,93 @@ https://baas.kinvey.com/appdata/{{app-key}}/Organics |
|
|
}
|
|
|
}
|
|
|
]
|
|
|
|
|
|
## Harvests
|
|
|
|
|
|
### POST
|
|
|
https://baas.kinvey.com/appdata/{{app-key}}/Harvests
|
|
|
|
|
|
#### body
|
|
|
|
|
|
{
|
|
|
"id_producer" : "5ae4eb537864c356779d5562fa0",
|
|
|
"canceled" : "false",
|
|
|
"organics" : [
|
|
|
{
|
|
|
"organic" : {
|
|
|
"name" : "melancia",
|
|
|
"measurement" : "un",
|
|
|
"image" : "dakjflksdjflskdfjkl"
|
|
|
},
|
|
|
"quantity" : "5",
|
|
|
"price" : "6,6"
|
|
|
},
|
|
|
{
|
|
|
"organic" : {
|
|
|
"name" : "laranja",
|
|
|
"measurement" : "un",
|
|
|
"image" : "dakjflksdjflskdfjkl"
|
|
|
},
|
|
|
"quantity" : "5",
|
|
|
"price" : "5,5"
|
|
|
},
|
|
|
{
|
|
|
"organic" : {
|
|
|
"name" : "limão",
|
|
|
"measurement" : "un",
|
|
|
"image" : "dakjflksdjflskdfjkl"
|
|
|
},
|
|
|
"quantity" : "5",
|
|
|
"price" : "5,5"
|
|
|
}
|
|
|
|
|
|
]
|
|
|
}
|
|
|
|
|
|
### GET
|
|
|
https://baas.kinvey.com/appdata/{{app-key}}/Harvests
|
|
|
|
|
|
#### Exemplo de retorno
|
|
|
[
|
|
|
{
|
|
|
"_id": "5af4db1b8ad21e249a8c6cac",
|
|
|
"id_producer": "5ae4eb537864c356779d5562fa0",
|
|
|
"canceled": "false",
|
|
|
"organics": [
|
|
|
{
|
|
|
"organic": {
|
|
|
"name": "melancia",
|
|
|
"measurement": "un",
|
|
|
"image": "dakjflksdjflskdfjkl"
|
|
|
},
|
|
|
"quantity": "5",
|
|
|
"price": "6,6"
|
|
|
},
|
|
|
{
|
|
|
"organic": {
|
|
|
"name": "laranja",
|
|
|
"measurement": "un",
|
|
|
"image": "dakjflksdjflskdfjkl"
|
|
|
},
|
|
|
"quantity": "5",
|
|
|
"price": "5,5"
|
|
|
},
|
|
|
{
|
|
|
"organic": {
|
|
|
"name": "limão",
|
|
|
"measurement": "un",
|
|
|
"image": "dakjflksdjflskdfjkl"
|
|
|
},
|
|
|
"quantity": "5",
|
|
|
"price": "5,5"
|
|
|
}
|
|
|
],
|
|
|
"_acl": {
|
|
|
"creator": "5ae4eb0b4c356779d5562e2f"
|
|
|
},
|
|
|
"_kmd": {
|
|
|
"lmt": "2018-05-10T23:51:55.674Z",
|
|
|
"ect": "2018-05-10T23:51:55.674Z"
|
|
|
}
|
|
|
}
|
|
|
] |
|
|
\ No newline at end of file |