diff options
author | hewei-cmss <hewei@cmss.chinamobile.com> | 2019-10-21 09:47:32 +0800 |
---|---|---|
committer | hewei-cmss <hewei@cmss.chinamobile.com> | 2019-10-21 09:47:32 +0800 |
commit | 65312944800c12445a64857ed11df435a5f8f87a (patch) | |
tree | c9d95a3a3eddd4442326012a2e1614990ace9b62 | |
parent | a5e72cf5d5ccadb648e26317fddebcaeaa4c6bca (diff) |
Fix catalog view response
Issue-ID: VFC-1504
Signed-off-by: hewei-cmss <hewei@cmss.chinamobile.com>
Change-Id: Ibe01189ac18b53894219c1f46a174e6cc1d53a80
-rw-r--r-- | catalog/packages/views/catalog_views.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/catalog/packages/views/catalog_views.py b/catalog/packages/views/catalog_views.py index 6ed9fb9c..4508523e 100644 --- a/catalog/packages/views/catalog_views.py +++ b/catalog/packages/views/catalog_views.py @@ -108,6 +108,7 @@ def nspackages_rc(request, *args, **kwargs): request_body=no_body, responses={ status.HTTP_200_OK: NfPackagesSerializer, + status.HTTP_202_ACCEPTED: PostJobResponseSerializer, status.HTTP_500_INTERNAL_SERVER_ERROR: InternalErrorRequestSerializer}) @api_view(http_method_names=['POST', 'GET']) def nfpackages_rc(request, *args, **kwargs): @@ -396,6 +397,8 @@ def nf_rd_csar(request, *args, **kwargs): request_body=ParseModelRequestSerializer, responses={ status.HTTP_202_ACCEPTED: ParseModelResponseSerializer, + status.HTTP_400_BAD_REQUEST: InternalErrorRequestSerializer(), + status.HTTP_404_NOT_FOUND: InternalErrorRequestSerializer(), status.HTTP_500_INTERNAL_SERVER_ERROR: InternalErrorRequestSerializer}) @api_view(http_method_names=['POST']) def model_parser(request, *args, **kwargs): |