Uploaded image for project: 'Social Justice Repair Kit'
  1. Social Justice Repair Kit
  2. SJRK-416

Make server endpoints more RESTful

    XMLWordPrintable

    Details

      Description

      In response to this piece of review left by Justin Obara on the pull request for SJRK-289, 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.

      Justin Obara'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.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            gmoss Gregor Moss
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: