diff options
author | dyh <dengyuanhong@chinamobile.com> | 2019-09-11 14:26:19 +0800 |
---|---|---|
committer | dyh <dengyuanhong@chinamobile.com> | 2019-09-11 14:28:14 +0800 |
commit | 78a414334876164ba61f63bed7cc91dc48620fcf (patch) | |
tree | 2af8444e8be7abb421fc1142383a3216e406383b /catalog/packages/views/vnf_package_subscription_views.py | |
parent | 5d5d8f38910c9e776a3d38bbeea26e85a08ed177 (diff) |
update swagger info, add tags for swagger_auto_schema
Change-Id: I50867c324e492cc7472bc199a4f72d202f235ce0
Issue-ID: MODELING-221
Signed-off-by: dyh <dengyuanhong@chinamobile.com>
Diffstat (limited to 'catalog/packages/views/vnf_package_subscription_views.py')
-rw-r--r-- | catalog/packages/views/vnf_package_subscription_views.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/catalog/packages/views/vnf_package_subscription_views.py b/catalog/packages/views/vnf_package_subscription_views.py index 32904e3..27be798 100644 --- a/catalog/packages/views/vnf_package_subscription_views.py +++ b/catalog/packages/views/vnf_package_subscription_views.py @@ -46,6 +46,7 @@ VALID_FILTERS = [ class CreateQuerySubscriptionView(APIView): @swagger_auto_schema( + tags=["VNF Package API"], request_body=PkgmSubscriptionRequestSerializer, responses={ status.HTTP_201_CREATED: PkgmSubscriptionSerializer(), @@ -62,6 +63,7 @@ class CreateQuerySubscriptionView(APIView): return Response(data=subscription_info.data, status=status.HTTP_201_CREATED) @swagger_auto_schema( + tags=["VNF Package API"], responses={ status.HTTP_200_OK: PkgmSubscriptionSerializer(), status.HTTP_400_BAD_REQUEST: ProblemDetailsSerializer(), @@ -87,6 +89,7 @@ class CreateQuerySubscriptionView(APIView): class QueryTerminateSubscriptionView(APIView): @swagger_auto_schema( + tags=["VNF Package API"], responses={ status.HTTP_200_OK: PkgmSubscriptionSerializer(), status.HTTP_404_NOT_FOUND: ProblemDetailsSerializer(), @@ -106,6 +109,7 @@ class QueryTerminateSubscriptionView(APIView): return Response(data=subscription_serializer.data, status=status.HTTP_200_OK) @swagger_auto_schema( + tags=["VNF Package API"], responses={ status.HTTP_204_NO_CONTENT: "", status.HTTP_404_NOT_FOUND: ProblemDetailsSerializer(), |