Authors: Andres Mills Gallego & Tanner Percival
-
What is the root URL to your API?
-
What are the routes?
GET
- /class - Gets all classmates from the Class TableGET
- /class/id - Gets one classmate from the Class Table by idPOST
- /class - Creates a new classmate and adds them to the Class TablePUT
- /class/id - Finds a classmate by their id and updates the information in the Class TableDELETE
- /class/id - Finds and deletes a classmate from the Class Table and returns a "success" message with the classmate's name
-
What inputs do they require?
- They required the
event.pathParameters
and theevent.queryStringParameters
- They required the
-
What output do they return?
- They return the item from the table, be it the entire list with
GET
, a single item withGET
by id, the updated item withPUT
and a "classmate.name was successfully deleted!" message withDELETE
- They return the item from the table, be it the entire list with