Complete the following setup steps of the Solar System API repo:
- Activate the virtual environment
- Create the database
solar_system_development- Every member of the group must create the database on their computer
- Setup the
Planetmodel with the attributesid,name, anddescription, and one additional attribute - Create a migration to add a table for the
Planetmodel and then apply it.- Confirm that the
planettable has been created as expected in postgres.
- Confirm that the
Create or refactor the following endpoints, with similar functionality presented in the Hello Books API:
As a client, I want to send a request...
- ...with new valid
planetdata and get a success response, so that I know the API saved the planet data - ...to get all existing
planets, so that I can see a list of planets, with theirid,name,description, and other data of theplanet.