maestro-server/analytics-maestro

View on GitHub
app/controller/home.py

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

from flask_restful import Resource
from app.libs.appInfo import appInfo


class HomeApp(Resource):
    """
    @api {get} / Ping
    @apiName GetPing
    @apiGroup Ping

    @apiSuccessExample {json} Success-Response:
    HTTP/1.1 201 OK
    {
       app: (String)
       description: (String)
       version: (String)
    }
    """
    def get(self):
        return appInfo()