Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 1007 Bytes

File metadata and controls

20 lines (14 loc) · 1007 Bytes

Wave 03: Connecting the Database, Read and Create Endpoints

Database Setup

Complete the following setup steps of the Solar System API repo:

  1. Create the database solar_system_development
    • Every member of the group must create the database on their computer
  2. Setup the Planet model with the attributes id, name, and description, and one additional attribute
  3. Create a migration to add a table for the Planet model and then apply it. #this is referring to the migration set up with Psquel

RESTful Endpoints: Create and Read

Create or refactor the following endpoints, with similar functionality presented in the Hello Books API:

As a client, I want to send a request...

  1. ...with new valid planet data and get a success response, so that I know the API saved the planet data
  2. ...to get all existing planets, so that I can see a list of planets, with their id, name, description, and other data of the planet.