diff options
author | dyh <dengyuanhong@chinamobile.com> | 2019-11-21 16:53:38 +0800 |
---|---|---|
committer | dyh <dengyuanhong@chinamobile.com> | 2019-11-21 17:17:32 +0800 |
commit | b301e35367f860fae335c85227795008b531d79b (patch) | |
tree | f7505b957aeffcb6de2e584908cb7dcd48bbd191 /catalog/packages/views/health_check_views.py | |
parent | 1e1ba6cb568bbf426175ee8d5fa25c07d87678f1 (diff) |
1.Update API endpoint; 2. update swagger information.
Issue-ID: MODELING-277
Change-Id: I6b3252ebc61d6bdf0ece483688a44f3838901940
Signed-off-by: dyh <dengyuanhong@chinamobile.com>
Diffstat (limited to 'catalog/packages/views/health_check_views.py')
-rw-r--r-- | catalog/packages/views/health_check_views.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/catalog/packages/views/health_check_views.py b/catalog/packages/views/health_check_views.py index e5aad9a..fc5c25e 100644 --- a/catalog/packages/views/health_check_views.py +++ b/catalog/packages/views/health_check_views.py @@ -19,12 +19,14 @@ from rest_framework import status from rest_framework.response import Response from rest_framework.views import APIView +from catalog.packages.const import TAG_HEALTH_CHECK + logger = logging.getLogger(__name__) class HealthCheckView(APIView): @swagger_auto_schema( - tags=["Health check API"], + tags=[TAG_HEALTH_CHECK], responses={ status.HTTP_200_OK: 'Active'}) def get(self, request, format=None): |