Align openapi specs to the actual API

This commit is contained in:
Georg Krause 2022-09-28 17:53:49 +00:00
commit 301cea927a
22 changed files with 153 additions and 111 deletions

View file

@ -64,7 +64,9 @@ class NodeInfo(views.APIView):
permission_classes = []
authentication_classes = []
@extend_schema(responses=serializers.NodeInfo20Serializer)
@extend_schema(
responses=serializers.NodeInfo20Serializer, operation_id="getNodeInfo20"
)
def get(self, request):
pref = preferences.all()
if (