Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mc100s authored Feb 22, 2019
1 parent 5b33430 commit 38aa007
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ You should display the following from each of the beers:
</div>


:::info

The first time you call the API, it might take a bit to respond. It's hosted on Heroku, and it goes to sleep after 30 minutes, you know! :wink:
:::


### Iteration 5: Single Beer

Expand Down Expand Up @@ -144,16 +144,16 @@ Finally, on the `/new-beer` route, we should render a form where user could crea
- **description**
- **first_brewed**
- **brewers_tips**
- **attenuation_level**
- **attenuation_level** (must be a number above 1)
- **contributed_by**

Then, you should do a `POST` request to `https://ironbeer-api.herokuapp.com/beers/new`, passing all the data on the `body` object. If everything went ok, you would receive a **200** response from the server.

Notice that the fields on the `body` should have those specific **names** so the API can create a new beer.

:::info

Since we did not cover how to upload images, do not worry about that, the API will assign a random image to the new beer. :beer:
:::


<div style="display: flex; justify-content: center">
<img src="https://user-images.githubusercontent.com/23629340/40707877-3c9dad42-63f2-11e8-8c95-4881bbde64a2.png" height="600px" />
Expand Down

0 comments on commit 38aa007

Please sign in to comment.