diff options
author | hongyuzhao <zhao.hongyu@zte.com.cn> | 2019-11-29 16:58:52 +0800 |
---|---|---|
committer | hongyuzhao <zhao.hongyu@zte.com.cn> | 2019-11-30 11:21:02 +0800 |
commit | 06bfcce3f57176e6b428e43e8e411e245a5fa75e (patch) | |
tree | 68e15b2e0948251b6955e5e95ba6fab57c2bb4b7 /catalog/packages/views/pnf_descriptor_views.py | |
parent | 24ea7e1390912ba99304085c249e17dce46b047a (diff) |
Swagger issue fixes from the Ericsson team:content-type extends the "application / octet-stream"
Change-Id: Ib516dadf8430e5b4230ac1d51d936517e9cec8ba
Issue-ID: MODELING-288
Signed-off-by: hongyuzhao <zhao.hongyu@zte.com.cn>
Diffstat (limited to 'catalog/packages/views/pnf_descriptor_views.py')
-rw-r--r-- | catalog/packages/views/pnf_descriptor_views.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/catalog/packages/views/pnf_descriptor_views.py b/catalog/packages/views/pnf_descriptor_views.py index 1fa03dc..4051e56 100644 --- a/catalog/packages/views/pnf_descriptor_views.py +++ b/catalog/packages/views/pnf_descriptor_views.py @@ -34,6 +34,7 @@ from catalog.packages.views.common import validate_data from catalog.pub.utils.syscomm import fun_name from catalog.pub.utils.values import ignore_case_get from .common import view_safe_call_with_log +from catalog.swagger.views import EtsiCatalogFileAutoSchema logger = logging.getLogger(__name__) @@ -121,6 +122,7 @@ def pnf_descriptors_rc(request): } ) @swagger_auto_schema( + auto_schema=EtsiCatalogFileAutoSchema, method='GET', operation_description="Fetch PNFD content", tags=[TAG_PNFD_API], @@ -131,7 +133,6 @@ def pnf_descriptors_rc(request): status.HTTP_404_NOT_FOUND: ProblemDetailsSerializer(), status.HTTP_500_INTERNAL_SERVER_ERROR: ProblemDetailsSerializer() }, - produces='application/octet-stream', operation_id='Fetch PNFD content' ) @api_view(http_method_names=['PUT', 'GET']) |