from flask import Blueprint
from flask_restx import Api

from app.apis.namespace_environment_builds import api as ns_env_builds
from app.apis.namespace_environment_images import api as ns_env_images
from app.apis.namespace_experiments import api as ns_experiments
from app.apis.namespace_pipelines import api as ns_pipelines
from app.apis.namespace_projects import api as ns_projects
from app.apis.namespace_runs import api as ns_runs
from app.apis.namespace_sessions import api as ns_sessions
from app.apis.namespace_validations import api as ns_validations

blueprint = Blueprint("api", __name__)

api = Api(
    blueprint,
    title="Orchest API",
    version="1.0",
    description="Back-end API for Orchest",
)

api.add_namespace(ns_env_builds)
api.add_namespace(ns_env_images)
api.add_namespace(ns_experiments)
api.add_namespace(ns_pipelines)
api.add_namespace(ns_projects)
api.add_namespace(ns_runs)
api.add_namespace(ns_sessions)
api.add_namespace(ns_validations)
