refactor schedule REST API
Compare changes
- Konrad Mohrfeldt authored
The conflict responses should be send with an HTTP 409 status code as they’re defined in our documentation. This was not the case as the dashboard couldn’t handle these error codes, but is now fixed in dashboard@4a07ad9e.
+ 24
− 40
@@ -42,6 +42,7 @@ from program.models import (
@@ -58,6 +59,7 @@ from program.serializers import (
@@ -344,9 +346,10 @@ class APIShowViewSet(DisabledObjectPermissionCheckMixin, viewsets.ModelViewSet):
@@ -366,9 +369,9 @@ class APIShowViewSet(DisabledObjectPermissionCheckMixin, viewsets.ModelViewSet):
@@ -410,8 +413,14 @@ class APIShowViewSet(DisabledObjectPermissionCheckMixin, viewsets.ModelViewSet):
@@ -475,28 +484,16 @@ class APIScheduleViewSet(
@@ -532,26 +529,13 @@ class APIScheduleViewSet(