From b301e35367f860fae335c85227795008b531d79b Mon Sep 17 00:00:00 2001 From: dyh Date: Thu, 21 Nov 2019 16:53:38 +0800 Subject: 1.Update API endpoint; 2. update swagger information. Issue-ID: MODELING-277 Change-Id: I6b3252ebc61d6bdf0ece483688a44f3838901940 Signed-off-by: dyh --- catalog/packages/views/health_check_views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'catalog/packages/views/health_check_views.py') 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): -- cgit 1.2.3-korg