response = Response(data=resp_serializer.data, status=status.HTTP_201_CREATED)
response["Location"] = NS_INSTANCE_BASE_URI % nsInstance['id']
return response
-
except BadRequestException as e:
logger.error("Exception in CreateNS: %s", e.message)
data = {'status': status.HTTP_400_BAD_REQUEST, 'detail': e.message}
@swagger_auto_schema(
request_body=None,
responses={
- status.HTTP_204_NO_CONTENT: None
+ status.HTTP_204_NO_CONTENT: "HTTP_204_NO_CONTENT"
}
)
def delete(self, request, ns_instance_id):