Skip to content

Commit

Permalink
Merge pull request #2411 from mitre/bernsteinj-patch-1
Browse files Browse the repository at this point in the history
Update health_api.py
  • Loading branch information
bernsteinj authored Dec 20, 2021
2 parents 970492a + 4fd2eb5 commit 7e323ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/api/v2/handlers/health_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ def add_routes(self, app: web.Application):
router = app.router
router.add_get('/health', security.authentication_exempt(self.get_health_info))

@aiohttp_apispec.docs(tags=["health"])
@aiohttp_apispec.docs(tags=['health'],
summary='Health endpoints returns the status of CALDERA',
description='Returns the status of CALDERA and additional details including versions of system components')
@aiohttp_apispec.response_schema(CalderaInfoSchema, 200)
async def get_health_info(self, request):
loaded_plugins_sorted = sorted(self._app_svc.get_loaded_plugins(), key=operator.attrgetter('name'))
Expand Down

0 comments on commit 7e323ea

Please sign in to comment.