DOCUMENTATION ON TOLO MAKAN API

The API is hosted on herokuapp, here's the link to it : https://tolomakan.herokuapp.com/

METHOD ENDPOINT USAGE RETURNS AUTHENTICATION
GET /makans Get All The Food Places Food Places No
POST /makans Add a new food place The food place that has just been added Yes
GET /random Get five random eateries in Singapore Five food places Yes
GET /type (i.e. Western, Chinese and etc) Get all food places based on the choice of cuisine Food directory No
GET /randomFive Get five random eateries around your location (i.e. lng=103.841445, lat=1.278971) Five food places No
GET /randomFive Get five random eateries around your location (i.e. lng=103.841445, lat=1.278971) Five food places No
UPDATE/PUT /makans/:id Edit/Update the details of existing food place by their id Update Yes
DELETE /makans/:id Delete the existing food place by their id Delete Yes

Will get all the content of Makan Object, here's an example of the data format:

{ _id: "578e03e107c98311936706",
name: "General Assembly",
loc: [103.846598,1.372184],
latitude: 1.372184,
longitude: 103.846598,
address: "#01-23, Ang Mo Kio Food Centre, 724 Ang Mo Kio Avenue 6, 560724",
type: "Hawker",
categories: "Chinese",
mapId: "ChIJUTuowOcW2jER9Sero-2KrbI",
price: 5,
__v: 0 }