Ejemplo n.º 1
0
    """
    The API root element
    """

    @API.doc(security=None)
    @jwt_optional
    @API.marshal_with(ROOT_MODEL)
    # pylint: disable=R0201
    def get(self):
        """
        Get the root element
        """
        print('HI')
        return None

API.render_root = RootResource.get

from . import user, beverage, authentication, transaction

HISTORY_NS = API.namespace('history', description='History', path='/history')

@HISTORY_NS.route('/')
class HistoryResource(Resource):
    """
    History
    """

    #@jwt_required
    @API.marshal_list_with(TRANSACTION_GET)
    # pylint: disable=R0201
    def get(self):