kowhai-2018 / fishlist

Which fish should I eat?
0 stars 2 forks source link

Add a delete route and database functions #83

Open richchurcher opened 5 years ago

richchurcher commented 5 years ago

Add the ability to delete a fish. This will be ever so slightly complex, because you'll need to delete the fish details and then delete the fish (in that order) otherwise the database will complain at you! Respond to the user with a JSON response indicating success.

The route will probably be:

DELETE /api/v1/fish/:id

Don't forget tests :smile: :heavy_check_mark: Don't forget to update the wiki accordingly :smile: :heavy_check_mark: