mirror of
https://github.com/suitenumerique/docs.git
synced 2026-09-17 23:28:01 +02:00
We used one drf extra action with both PATCH and GET https methods and then split in two private methods and call them based on the http method of the request. DRF allow to do this by using a mapping annotation allowing us to have directly twi viewset actions used django-rest-framework.org/api-guide/viewsets/#marking-extra-actions-for-routing