Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
memcmahon authored May 23, 2018
1 parent d3c3c39 commit 0ebe1fd
Showing 1 changed file with 24 additions and 10 deletions.
34 changes: 24 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Quantified Self is an exercise in creating RESTful APIs in three different langu

Below are the repositories for each Quantified Self application:

[Ruby on Rails](https://github.com/memcmahon/quantified_self)
[Node.js](https://github.com/memcmahon/quantified-self-express)
[Elixir](https://github.com/memcmahon/quantified-self-phoenix)
* [Ruby on Rails](https://github.com/memcmahon/quantified_self)
* [Node.js](https://github.com/memcmahon/quantified-self-express)
* [Elixir](https://github.com/memcmahon/quantified-self-phoenix)

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.

Expand All @@ -18,8 +18,12 @@ The instructions for starting each of these locally can be found on their indivi

### Food Endpoints

```GET /api/v1/foods```
```GET /api/v1/foods/:id```
```
GET /api/v1/foods
```
```
GET /api/v1/foods/:id
```
```
POST /api/v1/foods
with body: { "food": { "name": "Name of food here", "calories": "Calories here"} }
Expand All @@ -28,10 +32,20 @@ POST /api/v1/foods
PATCH /api/v1/foods
with body: { "food": { "name": "Name of food here", "calories": "Calories here"} }
```
```DELETE /api/v1/foods/:id```
```
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```
```
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
```

0 comments on commit 0ebe1fd

Please sign in to comment.