-
Build a REST API server using Express.
-
Use Sequelize models and schemas to perform CRUD operations.
-
Respond to request Queries and Parameters in routes.
-
Testing code that relies on a Postgres Database server.
-
Swaped out the route handler functions in favor of a Collection Interface
-
Perform generic Database CRUD operations
-
Created a Collection Class that accepts a Sequelize Model into the constructor and
- Status Code (200)
- JSON Data response:
- (car) data:
- name: STRING
- color: STRING
- doors: INTEGER
- (car) data:
- /car/:carId
- Status Code (200)
- JSON Data response:
- one (car) data on (carId):
- name : STRING
- color: STRING
- doors: INTEGER
- one (car) data on (carId):
- Status Code (200)
- JSON Data response:
- Creates new (car) data:
- name : STRING
- color: STRING
- doors: INTEGER
- Creates new (car) data:
- Status Code (200)
- JSON Data response:
- Update one (car) data on (carId):
- name : STRING
- color: STRING
- doors: INTEGER
- Update one (car) data on (carId):
- Status Code (200)
- Delete one (car) data on (carId)
- Status Code (200)
- JSON Data response:
- (game) data:
- name : STRING
- type: STRING
- players: INTEGER
- (game) data:
- /game/:gameId
- Status Code (200)
- JSON Data response:
- one (game) data on (gameId):
- name : STRING
- type: STRING
- players: INTEGER
- one (game) data on (gameId):
- Status Code (200)
- JSON Data response:
- Creates new (game) data:
- name : STRING
- type: STRING
- players: INTEGER
- Creates new (game) data:
- Status Code (200)
- JSON Data response:
- Update one (game) data on (gameId):
- name : STRING
- type: STRING
- players: INTEGER
- Update one (game) data on (gameId):
- Status Code (204)
- Delete one (game) data on (gameId)