Create the following endpoints, with similar functionality presented in the Hello Books API:
As a client, I want to send a request...
- ...to get one existing
planet
, so that I can see theid
,name
,description
, and other data of theplanet
. - ... with valid planet data to update one existing
planet
and get a success response, so that I know the API updated theplanet
data. - ... to delete one existing
planet
and get a success response, so that I know the API deleted theplanet
data..- Each of the above endpoints should respond with a
404
for non-existing planets and a400
for invalidplanet_id
.
- Each of the above endpoints should respond with a