Skip to content
Discussion options

You must be logged in to vote

@jugaadi I think it would be interesting to have a server stubs generator for FastAPI. Currently, I don't think this exists, but I think it would be pretty easy to throw together a set of templates for this that would be compatible with openapi-generator, which has server stubs generation for other python frameworks.

You can take a look at https://github.com/dmontagu/fastapi_client for an example of what this looks like when generating a client; tweaking it to generate a server shouldn't be too hard beyond modifying the templates and language passed to the openapi-generator call.

Replies: 8 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Kludex
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or problem question-migrate
8 participants
Converted from issue

This discussion was converted from issue #519 on February 28, 2023 11:56.