ApplicantPortal/app/api.py
2025-03-12 20:43:26 -06:00

23 lines
792 B
Python

from flask import Blueprint
from flask_restx import Api
from .auth.api import auth as auth_namespace
from .applicant.api import applicant_namespace
from .network_admin.api import namespace as network_admin_namespace
from .admin.api import namespace as admin_namespace
authorizations = {'Bearer': {'type': 'apiKey', 'in': 'header', 'name': 'Auth-Header'}}
blueprint = Blueprint('api', __name__)
api = Api(
blueprint,
doc='/doc/',
title='Quarter backend API documentation',
description='Welcome to the API documentation for the Quarter backend!',
authorizations=authorizations
)
api.add_namespace(auth_namespace, '/auth')
api.add_namespace(applicant_namespace, '')
api.add_namespace(network_admin_namespace, '/network_admin')
api.add_namespace(admin_namespace, '/admin')