|
|
@ -42,7 +42,7 @@ def examples( |
|
|
|
@app.post("/example_examples/") |
|
|
|
def example_examples( |
|
|
|
item: Item = Body( |
|
|
|
example={"data": "Overriden example"}, |
|
|
|
example={"data": "Overridden example"}, |
|
|
|
examples={ |
|
|
|
"example1": {"value": {"data": "examples example_examples 1"}}, |
|
|
|
"example2": {"value": {"data": "examples example_examples 2"}}, |
|
|
@ -76,7 +76,7 @@ def example_examples( |
|
|
|
# def form_example_examples( |
|
|
|
# lastname: str = Form( |
|
|
|
# ..., |
|
|
|
# example="Doe overriden", |
|
|
|
# example="Doe overridden", |
|
|
|
# examples={ |
|
|
|
# "example1": {"summary": "last name summary", "value": "Doe"}, |
|
|
|
# "example2": {"value": "Doesn't"}, |
|
|
@ -110,7 +110,7 @@ def path_examples( |
|
|
|
@app.get("/path_example_examples/{item_id}") |
|
|
|
def path_example_examples( |
|
|
|
item_id: str = Path( |
|
|
|
example="item_overriden", |
|
|
|
example="item_overridden", |
|
|
|
examples={ |
|
|
|
"example1": {"summary": "item ID summary", "value": "item_1"}, |
|
|
|
"example2": {"value": "item_2"}, |
|
|
@ -147,7 +147,7 @@ def query_examples( |
|
|
|
def query_example_examples( |
|
|
|
data: Union[str, None] = Query( |
|
|
|
default=None, |
|
|
|
example="query_overriden", |
|
|
|
example="query_overridden", |
|
|
|
examples={ |
|
|
|
"example1": {"summary": "Query example 1", "value": "query1"}, |
|
|
|
"example2": {"value": "query2"}, |
|
|
@ -184,7 +184,7 @@ def header_examples( |
|
|
|
def header_example_examples( |
|
|
|
data: Union[str, None] = Header( |
|
|
|
default=None, |
|
|
|
example="header_overriden", |
|
|
|
example="header_overridden", |
|
|
|
examples={ |
|
|
|
"example1": {"summary": "Query example 1", "value": "header1"}, |
|
|
|
"example2": {"value": "header2"}, |
|
|
@ -221,7 +221,7 @@ def cookie_examples( |
|
|
|
def cookie_example_examples( |
|
|
|
data: Union[str, None] = Cookie( |
|
|
|
default=None, |
|
|
|
example="cookie_overriden", |
|
|
|
example="cookie_overridden", |
|
|
|
examples={ |
|
|
|
"example1": {"summary": "Query example 1", "value": "cookie1"}, |
|
|
|
"example2": {"value": "cookie2"}, |
|
|
|