diff options
author | 2019-09-11 14:26:19 +0800 | |
---|---|---|
committer | 2019-09-11 14:28:14 +0800 | |
commit | 78a414334876164ba61f63bed7cc91dc48620fcf (patch) | |
tree | 2af8444e8be7abb421fc1142383a3216e406383b /catalog/packages/views/catalog_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/catalog_views.py')
-rw-r--r-- | catalog/packages/views/catalog_views.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/catalog/packages/views/catalog_views.py b/catalog/packages/views/catalog_views.py index 6ed9fb9..740c530 100644 --- a/catalog/packages/views/catalog_views.py +++ b/catalog/packages/views/catalog_views.py @@ -46,6 +46,7 @@ logger = logging.getLogger(__name__) @swagger_auto_schema( method='POST', operation_description="On distribute NS package", + tags=["NS packages API"], request_body=NsPackageDistributeRequestSerializer, responses={ status.HTTP_202_ACCEPTED: NsPackageDistributeResponseSerializer, @@ -53,6 +54,7 @@ logger = logging.getLogger(__name__) @swagger_auto_schema( method='GET', operation_description="Query NS packages", + tags=["NS packages API"], request_body=no_body, responses={ status.HTTP_200_OK: NsPackagesSerializer, @@ -98,6 +100,7 @@ def nspackages_rc(request, *args, **kwargs): @swagger_auto_schema( method='POST', operation_description="On distribute Nf package", + tags=["NF packages API"], request_body=NfPackageDistributeRequestSerializer(), responses={ status.HTTP_202_ACCEPTED: PostJobResponseSerializer, @@ -105,6 +108,7 @@ def nspackages_rc(request, *args, **kwargs): @swagger_auto_schema( method='GET', operation_description="Query Nf packages", + tags=["NF packages API"], request_body=no_body, responses={ status.HTTP_200_OK: NfPackagesSerializer, @@ -158,6 +162,7 @@ def nfpackages_rc(request, *args, **kwargs): @swagger_auto_schema( method='DELETE', operation_description="Delete one NS package", + tags=["NS packages API"], request_body=no_body, manual_parameters=[ openapi.Parameter( @@ -174,6 +179,7 @@ def nfpackages_rc(request, *args, **kwargs): @swagger_auto_schema( method='GET', operation_description="Query one NS package", + tags=["NS packages API"], request_body=no_body, manual_parameters=[ openapi.Parameter( @@ -216,6 +222,7 @@ def ns_rd_csar(request, *args, **kwargs): @swagger_auto_schema( method='POST', operation_description="On distribute Service package", + tags=["Service packages API"], request_body=ServicePackageDistributeRequestSerializer, responses={ status.HTTP_202_ACCEPTED: "", @@ -224,6 +231,7 @@ def ns_rd_csar(request, *args, **kwargs): @swagger_auto_schema( method='GET', operation_description="Query Service packages", + tags=["Service packages API"], request_body=no_body, responses={ status.HTTP_200_OK: ServicePackagesSerializer, @@ -267,6 +275,7 @@ def servicepackages_rc(request, *args, **kwargs): @swagger_auto_schema( method='DELETE', operation_description="Delete one Service package", + tags=["Service packages API"], request_body=no_body, manual_parameters=[ openapi.Parameter( @@ -281,6 +290,7 @@ def servicepackages_rc(request, *args, **kwargs): @swagger_auto_schema( method='GET', operation_description="Query one Service package", + tags=["Service packages API"], request_body=no_body, manual_parameters=[ openapi.Parameter( @@ -327,6 +337,7 @@ def service_rd_csar(request, *args, **kwargs): @swagger_auto_schema( method='DELETE', operation_description="Delete one Nf package", + tags=["NF packages API"], request_body=no_body, manual_parameters=[ openapi.Parameter( @@ -343,6 +354,7 @@ def service_rd_csar(request, *args, **kwargs): @swagger_auto_schema( method='GET', operation_description="Query one Nf package", + tags=["NF packages API"], request_body=no_body, manual_parameters=[ openapi.Parameter( @@ -393,6 +405,7 @@ def nf_rd_csar(request, *args, **kwargs): @swagger_auto_schema( method='POST', operation_description="Parse model(NS, Service, VNF, PNF)", + tags=["Parser API"], request_body=ParseModelRequestSerializer, responses={ status.HTTP_202_ACCEPTED: ParseModelResponseSerializer, @@ -453,6 +466,7 @@ def model_parser(request, *args, **kwargs): @swagger_auto_schema( method='POST', operation_description="Parse NS model", + tags=["Parser API"], request_body=ParseModelRequestSerializer, responses={ status.HTTP_202_ACCEPTED: ParseModelResponseSerializer, @@ -486,6 +500,7 @@ def ns_model_parser(request, *args, **kwargs): @swagger_auto_schema( method='POST', operation_description="Parse NF model", + tags=["Parser API"], request_body=ParseModelRequestSerializer, responses={ status.HTTP_202_ACCEPTED: ParseModelResponseSerializer, |