Path | HTTP Type | Description | Request Body | Querystring | Example |
---|---|---|---|---|---|
/api/guestbook | GET | Gets all entries in the guestbook | N/A | N/A | /api/guestbook |
/api/guestbook | GET | Gets a specific entry in the guestbook | N/A | id=[entry ID] | /api/guestbook?id=1 |
/api/last-request | GET | Gets the last request sent to the server | N/A | N/A | /api/last-request |
/api/guestbook/new | POST | Submits a new entry to the server | name, message | N/A | /api/guestbook/new (requires code to attach a body) |
/api/delete/:id | DELETE | Deletes a specific entry from the server | N/A | N/A | /api/guestbook/0 |