Make server endpoints more RESTful

Description

In response to this piece of review left by on the pull request for , the server endpoints for getting, saving and editing stories should be adjusted to be more RESTful and internally consistent with respect to the routes for stories and files. This work will also require updating the client side to call the correct endpoints.

's original comments from October 5, 2020:

Should review the end points for proper RESTful semantics. In this case POST to create a story makes sense. However uploading a file would likely be better to POST to /stories/:id/files. Updating specific files, or stories can use PUT and deleting a file or story can use DELETE.

Activity

Show:

Gregor Moss December 14, 2020 at 7:38 PM

Consider doing this work and at the same time

Justin Obara November 18, 2020 at 12:45 PM

This Google Sheet provides a summary of the current endpoints. 

Justin Obara November 9, 2020 at 2:27 PM

We should review all of the end points ensure that they follow proper RESTful semantics

Fixed

Details

Assignee

Reporter

Components

Priority

Created October 26, 2020 at 8:23 PM
Updated July 29, 2022 at 4:09 AM
Resolved July 29, 2022 at 4:09 AM