fix(openapi): Add Serializer for SpaManifest Endpoint
This commit is contained in:
parent
26455cf648
commit
7420729894
3 changed files with 14 additions and 2 deletions
|
|
@ -120,9 +120,10 @@ class NodeInfo(views.APIView):
|
|||
)
|
||||
|
||||
|
||||
class SpaManifest(views.APIView):
|
||||
class SpaManifest(generics.GenericAPIView):
|
||||
permission_classes = []
|
||||
authentication_classes = []
|
||||
serializer_class = serializers.SpaManifestSerializer
|
||||
|
||||
@extend_schema(operation_id="get_spa_manifest")
|
||||
def get(self, request, *args, **kwargs):
|
||||
|
|
@ -139,4 +140,5 @@ class SpaManifest(views.APIView):
|
|||
instance_description = preferences.get("instance__short_description")
|
||||
if instance_description:
|
||||
parsed_manifest["description"] = instance_description
|
||||
return Response(parsed_manifest, status=200)
|
||||
serializer = self.get_serializer(parsed_manifest)
|
||||
return Response(serializer.data, status=200)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue