The intention of this package is provide an easy method to adding SwaggerUI / OpenAPIUI to masonite.
pip3 install masonite-swagger-ui
- Add the package to the providers list:
from swagger_ui.providers import SwaggerUIProvider # ... PROVIDERS = [ # ... SwaggerUIProvider ]
- Run the install command:
craft swaggerui:install
this will copy over all the required scaffolding you need!
Thats it! You can now do craft serve
and navigate to /docs
to try it out in action!