Skip to content
Snippets Groups Projects
Commit 17f14d8a authored by Chris Pastl's avatar Chris Pastl
Browse files

docs: add OpenAPI annotations for rrules and settings

parent a5185ee2
No related branches found
No related tags found
1 merge request!39Add OpenAPI annotations for rrules and settings
Pipeline #7858 passed
......@@ -426,8 +426,12 @@ class APIShowViewSet(viewsets.ModelViewSet):
@extend_schema_view(
create=extend_schema(summary="Create a new rrule."),
retrieve=extend_schema(summary="Retrieve a single rrule."),
list=extend_schema(summary="List all rrule."),
update=extend_schema(summary="Update an existing rrule."),
partial_update=extend_schema(summary="Partially update an existing rrule."),
destroy=extend_schema(summary="Delete an existing rrule."),
list=extend_schema(summary="List all rrules.")
)
class APIRRuleViewSet(viewsets.ModelViewSet):
queryset = RRule.objects.all()
......@@ -907,6 +911,9 @@ class APILicenseViewSet(viewsets.ModelViewSet):
serializer_class = LicenseSerializer
@extend_schema_view(
list=extend_schema(summary="List all settings."),
)
class APIRadioSettingsViewSet(mixins.ListModelMixin, viewsets.GenericViewSet):
queryset = RadioSettings.objects.all()
serializer_class = RadioSettingsSerializer
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment