Simple reusable RapiDoc router for FastAPI OpenAPI specs
Project description
fastapi-rapidoc-router
Simple reusable RapiDoc router for FastAPI projects.
PyPI: https://pypi.org/project/fastapi-rapidoc-router/
Install
pip install fastapi-rapidoc-router
Development Install
From local source:
pip install -e .
Or from a Git repository:
pip install git+https://github.com/<your-org>/<your-repo>.git
Usage
from fastapi import FastAPI
from rapidoc_fastapi import mount_rapidoc
app = FastAPI(docs_url=None, redoc_url=None)
@app.get("/health")
def health() -> dict[str, str]:
return {"status": "ok"}
mount_rapidoc(app, docs_path="/docs", title="My API Docs")
Router API
from rapidoc_fastapi import create_rapidoc_router
router = create_rapidoc_router(
docs_path="/docs",
openapi_url="/openapi.json",
title="My API Docs",
)
app.include_router(router)
Notes
docs_pathcontrols where RapiDoc UI is served.openapi_urldefaults to the app OpenAPI endpoint.- This package uses the official RapiDoc script from CDN by default.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastapi_rapidoc_router-0.1.2.tar.gz.
File metadata
- Download URL: fastapi_rapidoc_router-0.1.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2dd858b46b570d1500f9a5c872dabda7b6117d1e18b02c7e7f6ba23fd05be4b
|
|
| MD5 |
f3b987d0fca287085f5054da1af783fe
|
|
| BLAKE2b-256 |
38adede6499837ab85809ff0337ad1fa3427ee5646fda99dd82e69ed25041c25
|
Provenance
The following attestation bundles were made for fastapi_rapidoc_router-0.1.2.tar.gz:
Publisher:
publish-pypi.yml on Kinjalrk2k/rapidoc-fastapi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fastapi_rapidoc_router-0.1.2.tar.gz -
Subject digest:
d2dd858b46b570d1500f9a5c872dabda7b6117d1e18b02c7e7f6ba23fd05be4b - Sigstore transparency entry: 1194523637
- Sigstore integration time:
-
Permalink:
Kinjalrk2k/rapidoc-fastapi@192f8f4bf1f01353f3432c52f604dd2939a88182 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Kinjalrk2k
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@192f8f4bf1f01353f3432c52f604dd2939a88182 -
Trigger Event:
push
-
Statement type:
File details
Details for the file fastapi_rapidoc_router-0.1.2-py3-none-any.whl.
File metadata
- Download URL: fastapi_rapidoc_router-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac217640692740df27e1b2717f67d6da3e166495bce6ce21a7e3aa66753732fa
|
|
| MD5 |
d61c1d74b7825f546abdf8f8773df862
|
|
| BLAKE2b-256 |
29ba289728a3f1728633f8717bcd2b4f99fd18716b669a87f10fb78ab4f5fcfb
|
Provenance
The following attestation bundles were made for fastapi_rapidoc_router-0.1.2-py3-none-any.whl:
Publisher:
publish-pypi.yml on Kinjalrk2k/rapidoc-fastapi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fastapi_rapidoc_router-0.1.2-py3-none-any.whl -
Subject digest:
ac217640692740df27e1b2717f67d6da3e166495bce6ce21a7e3aa66753732fa - Sigstore transparency entry: 1194523691
- Sigstore integration time:
-
Permalink:
Kinjalrk2k/rapidoc-fastapi@192f8f4bf1f01353f3432c52f604dd2939a88182 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Kinjalrk2k
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@192f8f4bf1f01353f3432c52f604dd2939a88182 -
Trigger Event:
push
-
Statement type: