Skip to content
Snippets Groups Projects
Commit ec6cfec7 authored by ml bonhomme's avatar ml bonhomme :bee:
Browse files

Only document load_parents as query param for ListElementMetaData

parent 186b9c9f
No related branches found
No related tags found
1 merge request!1840Only document load_parents as query param for ListElementMetaData
......@@ -1591,21 +1591,19 @@ class ElementsCreate(CreateAPIView):
serializer_class = ElementCreateSerializer
@extend_schema(
parameters=[
OpenApiParameter(
'load_parents',
description="List metadata for both the specified element and all of its parents.",
type=bool,
default=False,
)
]
)
@extend_schema_view(
get=extend_schema(
operation_id='ListElementMetaData',
description='List all metadata linked to an element.',
tags=['elements'],
parameters=[
OpenApiParameter(
'load_parents',
description="List metadata for both the specified element and all of its parents.",
type=bool,
default=False,
)
]
),
post=extend_schema(
operation_id='CreateMetaData',
......
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