Skip to content

A Command Line Interface to save openapi file from a FastAPI application

License

Notifications You must be signed in to change notification settings

KiraPC/fastapi-openapi-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What this repository contains

A Command Line Interface to save openapi file from a FastAPI application

Installation:

install the package

pip install fastapi-openapi-generator

How to use

fastapi-openapi-gen main:app \
    --app-dir= # The path to mounth in the python path to import the module. \
    --output-dir= # The path where store the openapi template. \
    --file-name= # The name the openapi file will assume.
    --mock-class= # Use it to mock a package that is not usefully for the openapi generation and block the fastapi start

About

A Command Line Interface to save openapi file from a FastAPI application

Resources

License

Stars

Watchers

Forks

Packages

No packages published