You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should return some general service info. Used to check if the service is running. Response:
{// Name of the service“name”: “string”,// Version of the service“version”: “string”,// ENV_INFO environment variable value“env”: “string”,// Flag, which indicates if the service is built// in the debug configuration or not“isDebug”: boolean}
Python implementation
@api.route('/isalive', methods=['GET'])defisalive():
""" Return some general service info. Used to check if service is running """version=get_version()
if"error"inversion:
returnmake_response(
jsonify(build_error(version["error"])),
version["status"]
)
result= {
"name": app.config['SKYCOIN_FIBER_NAME'],
"version": version,
"env": app.config["ENVIRONMENT"],
"isDebug": app.config["DEBUG"],
"contractVersion": app.config['SWAGGER_API_VERSION']
}
returnjsonify(result)
The text was updated successfully, but these errors were encountered:
[GET] /api/isalive
Should return some general service info. Used to check if the service is running. Response:
Python implementation
The text was updated successfully, but these errors were encountered: