type=openapi.TYPE_STRING,
pattern='CSAR(\w+) distributed successfully.')),
status.HTTP_500_INTERNAL_SERVER_ERROR: openapi.Response(
- 'error message',
+ 'error',
openapi.Schema(
type=openapi.TYPE_STRING))})
@swagger_auto_schema(
responses={
status.HTTP_200_OK: NsPackagesSerializer,
status.HTTP_500_INTERNAL_SERVER_ERROR: openapi.Response(
- 'error message',
+ 'error',
openapi.Schema(
type=openapi.TYPE_STRING))})
@api_view(http_method_names=['POST', 'GET'])
responses={
status.HTTP_202_ACCEPTED: PostJobResponseSerializer,
status.HTTP_500_INTERNAL_SERVER_ERROR: openapi.Response(
- 'error message',
+ 'error',
openapi.Schema(
type=openapi.TYPE_STRING))})
@swagger_auto_schema(
responses={
status.HTTP_200_OK: NfPackagesSerializer,
status.HTTP_500_INTERNAL_SERVER_ERROR: openapi.Response(
- 'error message',
+ 'error',
openapi.Schema(
type=openapi.TYPE_STRING))})
@api_view(http_method_names=['POST', 'GET'])
responses={
status.HTTP_202_ACCEPTED: ParseNfPackageResponseSerializer,
status.HTTP_500_INTERNAL_SERVER_ERROR: openapi.Response(
- 'error message',
+ 'error',
openapi.Schema(
type=openapi.TYPE_STRING))})
@api_view(http_method_names=['POST'])