hfaerber/byob

2.4 GET specific beer

Closed this issue · 0 comments

  • GET specific beer (200)
  • Error handling (404)
  • Error handling (500)

USER STORY:
_As a FE developer, I want to:

  • GET a single, specified beer from an endpoint. I'd like it to come with a 200 status code returning a single brewery so that I can display it. I do not want that object nested in an object with an array of just that one brewery object.
  • If there is an error with my GET attempt, I would like a 404 error with a message of "`Could not find beer with an id of ____".
  • If there is a server error I would like a 500 error with a message displaying that error.