A multipurpose python flask API server and administration SPA
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
532 B

"""Endpoint to expose the health of the application."""
from flask import Blueprint
from corvus.api.decorators import return_json
from corvus.api.model import APIResponse, APIMessage
HEALTH_BLUEPRINT = Blueprint(
name='health', import_name=__name__, url_prefix='/health')
@HEALTH_BLUEPRINT.route('', methods=['GET'])
@return_json
def get_health() -> APIResponse:
"""
Retrieve the health for the service.
:return:
"""
return APIResponse(
APIMessage(True, 'Service is healthy'),
200
)