Warning
This document is for an old release of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.
Source code for galaxy.webapps.reports.fast_app
from a2wsgi import WSGIMiddleware
from fastapi import FastAPI
from galaxy.webapps.base.api import (
add_exception_handler,
add_request_id_middleware,
include_all_package_routers,
)
[docs]def initialize_fast_app(gx_webapp):
app = FastAPI(
title="Galaxy Reports API",
description=(
"This API will give you insights into the Galaxy instance's usage and load. "
"It aims to provide data about users, jobs, workflows, disk space, and much more."
),
docs_url="/api/docs",
)
add_exception_handler(app)
add_request_id_middleware(app)
include_all_package_routers(app, "galaxy.webapps.reports.api")
wsgi_handler = WSGIMiddleware(gx_webapp)
app.mount("/", wsgi_handler)
return app