finance-watcher / api / endpoints / __init__.py
__init__.py
Raw
from flask_restx import Api
from .business import namespace as ns_business
from .user import namespace as ns_user
from .transaction import namespace as ns_transaction
from .account import namespace as ns_account
from .budget import namespace as ns_budget

api = Api(
    title='Finance Database API',
    version='0.0.0-a.4',
    description='API to get the metadata from the Finance Database.',
    # All API metadatas
)

api.add_namespace(ns_business)
api.add_namespace(ns_user)
api.add_namespace(ns_transaction)
api.add_namespace(ns_account)
api.add_namespace(ns_budget)