The repository for the Node.JS + Express Server REST API platform.
Code in not maintained since Pomodoro is not using this REST API anymore (switched to Parse)
- Content-Type: application/json.
- Authorization : Bearer SESSION_ID for private endpoints
- http://piceria--api-herokuapp-com-oa8jngxn4qes.runscope.net/
Retrieve the list of all products
Response (array of objects)
[
{
"_id": "53f29dc50170ff3337000002",
"photo": "http://www.google.com",
"ingredients": "Djath, Mocarela",
"description": "Pica margarita perbehet nga blablabla",
"name": "Pizza Margarita",
"type": "pizza",
"__v": 0,
"created_at": "2014-08-19T00:43:49.581Z",
"updated_at": "2014-08-19T00:43:49.580Z",
"sizes": {
"large": 500,
"medium": 350
}
},
]
Retrieve information about a specific product
Respone
{
"_id": "53f29dc50170ff3337000002",
"photo": "http://www.google.com",
"ingredients": "Djath, Mocarela",
"description": "Pica margarita perbehet nga blablabla",
"name": "Pizza Margarita",
"type": "pizza",
"__v": 0,
"created_at": "2014-08-19T00:43:49.581Z",
"updated_at": "2014-08-19T00:43:49.580Z",
"sizes": {
"large": 500,
"medium": 350
}
Retrieve products by their type (sandwich/pizza) Response is the same as the above examples
Retrieve product list based on the limit number (usually 4) and product type (Pizza/Sandwich) Response is the same as the above examples
Get the price for the product based on the size (medium/large)
Respone
{
"price": 350
}
Post a new product. Endpoint will be deleted
Retrieve the list of available ingredients
Respone
{
"meat": {
"x": 35,
"y": 25
},
"premium_meat": {
"x": 24,
"y": 20
},
"vegetables": {
"a": 10,
"b": 20
}
}
Retrieve the price for a specific ingredient based on his category
Respone
{
"price": 350
}
Retrieve the list of orders done by the user. Will require user session.
Retrieve the status of the order
You can test the existing endpoints at heroku
http://piceria-api.herokuapp.com/
For debugging:
http://piceria--api-herokuapp-com-oa8jngxn4qes.runscope.net/