HOSTED API DOCUMENTATION.

Simply by calling the endpoint, you'll be one step closer to know about authentic Central Java culinary.

Homepage


GET All Foods

cURL

A simple list of foods. Call the endpoint we have prepared below to get started.

curl https://culinaryapi.herokuapp.com/foods

Response :

[
{
"id": "1",
"name": "Timlo"
},
{
"id": "2",
"name": "Nasi Liwet"
},
{
"id": "3",
"name": "Sate Buntel"
},
{
"id": "4",
"name": "Tahu Kupat"
}
]
view raw foods.json hosted with ❤ by GitHub

GET Food by Id

cURL

A simple list of foods. Call the endpoint we have prepared below to get started.

curl https://culinaryapi.herokuapp.com/food/1
view raw get-byId.curl hosted with ❤ by GitHub

Response :

{
"id": "1",
"name": "Timlo"
}
view raw food.json hosted with ❤ by GitHub

POST A New Food

cURL

A simple list of foods. Call the endpoint we have prepared below to get started.

curl https://culinaryapi.herokuapp.com/food
view raw post.curl hosted with ❤ by GitHub

Request Body :

{
"id" : "5",
"name" : "Pecel"
}

Response :

[
"code :","200",
"status :","success"
]
{
"id":"5",
"name":"Pecel"
}

PUT To Update A Food

cURL

Available online soon.

Request

Available online soon.

Response

Available online soon.


DELETE A Food

cURL

A simple list of foods. Call the endpoint we have prepared below to get started.

curl https://culinaryapi.herokuapp.com/foods

Response :

[
{
"id": "1",
"name": "Timlo"
},
{
"id": "2",
"name": "Nasi Liwet"
},
{
"id": "3",
"name": "Sate Buntel"
},
{
"id": "4",
"name": "Tahu Kupat"
}
]
view raw foods.json hosted with ❤ by GitHub