Change-Id: I8a456b0ef4aef5a4692c335dac6dd965bd86d247
Issue-ID: VFC-1009
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
return Response(data=resp_serializer.data, status=status.HTTP_201_CREATED)
@swagger_auto_schema(
return Response(data=resp_serializer.data, status=status.HTTP_201_CREATED)
@swagger_auto_schema(
responses={
status.HTTP_200_OK: PnfInstancesSerializer(help_text="Pnf instances", many=True),
status.HTTP_500_INTERNAL_SERVER_ERROR: "Inner error"
responses={
status.HTTP_200_OK: PnfInstancesSerializer(help_text="Pnf instances", many=True),
status.HTTP_500_INTERNAL_SERVER_ERROR: "Inner error"
class IndividualPnfView(APIView):
@swagger_auto_schema(
class IndividualPnfView(APIView):
@swagger_auto_schema(
responses={
status.HTTP_204_NO_CONTENT: 'successful',
status.HTTP_500_INTERNAL_SERVER_ERROR: "Inner error"
responses={
status.HTTP_204_NO_CONTENT: 'successful',
status.HTTP_500_INTERNAL_SERVER_ERROR: "Inner error"
return Response(data={'error': e.message}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)
@swagger_auto_schema(
return Response(data={'error': e.message}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)
@swagger_auto_schema(
responses={
status.HTTP_200_OK: PnfInstanceSerializer(help_text="Pnf instance", many=True),
status.HTTP_500_INTERNAL_SERVER_ERROR: "Inner error",
responses={
status.HTTP_200_OK: PnfInstanceSerializer(help_text="Pnf instance", many=True),
status.HTTP_500_INTERNAL_SERVER_ERROR: "Inner error",