Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions ietf/api/views_rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@
operation_id="get_person_by_id",
summary="Find person by ID",
description="Returns a single person",
parameters=[
OpenApiParameter(
name="person_id",
type=int,
location="path",
description="Person ID identifying this person.",
),
],
),
)
class PersonViewSet(mixins.RetrieveModelMixin, viewsets.GenericViewSet):
Expand Down Expand Up @@ -151,6 +159,14 @@ class RpcPersonSearch(generics.ListAPIView):
operation_id="get_draft_by_id",
summary="Get a draft",
description="Returns the draft for the requested ID",
parameters=[
OpenApiParameter(
name="doc_id",
type=int,
location="path",
description="Doc ID identifying this draft.",
),
],
),
submitted_to_rpc=extend_schema(
operation_id="submitted_to_rpc",
Expand Down Expand Up @@ -196,6 +212,14 @@ def submitted_to_rpc(self, request):
"Returns the id and name of each normatively "
"referenced Internet-Draft for the given docId"
),
parameters=[
OpenApiParameter(
name="doc_id",
type=int,
location="path",
description="Doc ID identifying this draft.",
),
],
responses=ReferenceSerializer(many=True),
)
@action(detail=True, serializer_class=ReferenceSerializer)
Expand Down