How to passing version
string for Swagger docs?
#2332
Answered
by
jamesbraza
jamesbraza
asked this question in
Q&A
-
I am looking to migrate from FastAPI to Starlette, and have my app declared like so: from pathlib import Path
import setuptools_scm
from fastapi import FastAPI
app = FastAPI(
title="foo",
version=setuptools_scm.get_version(root=Path(__file__).parent)
) This How can one pass a similar |
Beta Was this translation helpful? Give feedback.
Answered by
jamesbraza
Nov 11, 2023
Replies: 1 comment
-
Ah I see, it's done though a third party plug-in like https://github.com/Woile/starlette-apispec or https://github.com/strongbugman/apiman |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jamesbraza
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah I see, it's done though a third party plug-in like https://github.com/Woile/starlette-apispec or https://github.com/strongbugman/apiman