refactor resource creation / updating via PUT/PATCH/DELETE requests
Now that we have a router and better API routes / paths in place, we need to rethink the shape of requests on the various paths that are aimed at creating resources or updating resources or even deleting resources via PUT, PATCH, and DELETE requests.
This will need to be done in tandem with the frontend.
See Liturgical-Calendar/LiturgicalCalendarFrontend/issues/142
Related issue #150
Issue #150 is now complete. Once this issue is closed we will be able to close #220 as well.
In order to better proceed with this issue, we need to clearly define the shape of the requests on each resource path for each request method.
The shape of the request should be defined both here in the API and on the client / frontend side.
Here's a checklist to keep track of the state of things:
Roman Missal sanctorale data
- [ ]
/missalsPUT - [ ]
/missals/{missal_id}PATCH - [ ]
/missals/{missal_id}DELETE
National Calendar data
- [x]
/data/nationPUT - [x]
/data/nation/{country_id}PATCH - [x]
/data/nation/{country_id}DELETE
Diocesan Calendar data
- [x]
/data/diocesePUT - [x]
/data/diocese/{diocese_id}PATCH - [x]
/data/diocese/{diocese_id}DELETE
Decrees of the Congregation for Divine Worship (for the General Roman Calendar)
- [ ]
/decreesPUT - [ ]
/decrees/{decree_id}PATCH - [ ]
/decrees/{decree_id}DELETE
Unit tests
- [ ]
/testsPUT - [ ]
/tests/{test_id}PATCH - [ ]
/tests/{test_id}DELETE