Skip to content
Snippets Groups Projects
Commit 2dfb2d71 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Merge branch 'api-integration-tests-204' into 'main'

Add OpenAPI annotations for rrules and settings

See merge request !39
parents be269328 17f14d8a
No related branches found
No related tags found
1 merge request!39Add OpenAPI annotations for rrules and settings
Pipeline #7867 passed
......@@ -68,7 +68,6 @@ def test_retrieve_host(api_client, host):
assert response.status_code == 200
@pytest.mark.skip
def test_update_host(admin_api_client, host, image):
update = host_data(image)
update["is_active"] = False
......
......@@ -462,8 +462,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()
......@@ -943,6 +947,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