Foods are classfied into 9 categories
- rice_based
- soups_and_stews
- bean_based
- meat_based
- yam_based
- cassava_based
- snacks
- beverages
- others
Get a json response of the specified food
example:
{ foodname: { category: foodcategory, img_url: link to image of food, nutritonal_information: {'calories': value , carbs: value, protein: value, fat: value, sodium: value, sugar: value} } }
URL: https://nigerianfoods.herokuapp.com/api/foods/jollof_rice
HTTP method: GET
Get a json response of every food in the database
URL: https://nigerianfoods.herokuapp.com/api/foods
HTTP method: GET
Get a json response of a list of all the foods that belong to a particular category
URL: https://nigerianfoods.herokuapp.com/api/food_category/rice_based
HTTP method: GET