Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 1.26 KB

README.md

File metadata and controls

51 lines (41 loc) · 1.26 KB

Quantified-Self

Quantified Self is an exercise in creating RESTful APIs in three different languages: Ruby/Rails, Node.js/Express and Elixir/Phoenix. The original projec spec can be found here.

Below are the repositories for each Quantified Self application:

The instructions for starting each of these locally can be found on their individual repos. The following information is common to the three applicaitons above.

Schema

Imgur

Endpoints

Food Endpoints

GET /api/v1/foods
GET /api/v1/foods/:id
POST /api/v1/foods
   with body: { "food": { "name": "Name of food here", "calories": "Calories here"} }
PATCH /api/v1/foods
   with body: { "food": { "name": "Name of food here", "calories": "Calories here"} }
DELETE /api/v1/foods/:id

Meal Endpoints

GET /api/v1/meals
GET /api/v1/meals/:meal_id/foods
POST /api/v1/meals/:meal_id/foods/:food_id
DELETE /api/v1/meals/:meal_id/foods/:food_id