fixing examples and adding doc strings
This commit is contained in:
@@ -84,14 +84,16 @@ class OpenAPIFirstApp(FastAPI):
|
||||
|
||||
Example
|
||||
-------
|
||||
>>> from openapi_first import OpenAPIFirstApp
|
||||
>>> import app.routes as routes
|
||||
>>>
|
||||
>>> app = OpenAPIFirstApp(
|
||||
... openapi_path="app/openapi.json",
|
||||
... routes_module=routes,
|
||||
... title="Example Service"
|
||||
... )
|
||||
```python
|
||||
from openapi_first import OpenAPIFirstApp
|
||||
import app.routes as routes
|
||||
|
||||
app = OpenAPIFirstApp(
|
||||
openapi_path="app/openapi.json",
|
||||
routes_module=routes,
|
||||
title="Example Service",
|
||||
)
|
||||
```
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
|
||||
Reference in New Issue
Block a user