Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove edit functions from API endpoints #764

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

dchiller
Copy link
Collaborator

This PR changes the class inheritance for the ChantList, ChantDetail, FolioList, FolioDetail, ConcordanceList, ConcordanceDetail, ManuscriptList and ManuscriptDetail views. *List views used to inherit from Django Rest Framework's ListCreateAPIView which allowed for both GET and POST requests. *Detail views used to inherit from Django Rest Framework's RetrieveUpdateDestroyAPIView which allowed GET, PUT, PATCH, and DELETE requests. At this time, only GET requests are required on those endpoints, and other request types had been previously allowed without authentication or verification. The now inherit from ListAPIView and RetrieveAPIView which only provides GET requests.

This PR closes #721, where a complete inventory of Cantus Ultimus's API endpoints was also undertaken to verify which views allowed these types of edit requests.

Copy link

@jacobdgm jacobdgm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks reasonable!

@dchiller dchiller merged commit c08380c into DDMAL:main Aug 10, 2023
2 checks passed
@dchiller dchiller deleted the i-721-fix-api-endpoints branch August 10, 2023 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

/folios, /chants, and /concordances, and /browse show API endpoint UI
2 participants