- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 266 for created (0.2 sec)
-
docs_src/path_operation_configuration/tutorial005.py
price: float tax: Union[float, None] = None tags: Set[str] = set() @app.post( "/items/", response_model=Item, summary="Create an item", response_description="The created item", ) async def create_item(item: Item): """ Create an item with all the information: - **name**: each item must have a name - **description**: a long description - **price**: required
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat May 14 11:59:59 GMT 2022 - 741 bytes - Viewed (0) -
.github/actions/people/app/main.py
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 17:38:21 GMT 2024 - 19.2K bytes - Viewed (1) -
ci/official/utilities/extract_resultstore_links.py
elem.tail = indent_str else: if level and (not elem.tail or not elem.tail.strip()): elem.tail = indent_str def create_xml_file(result_store_dict: ResultDictType, output_path: str, verbose: bool = False): """Creates a JUnit-based XML file, with each invocation as a testcase.""" os.makedirs(os.path.dirname(output_path), exist_ok=True) failure_count = 0
Python - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Nov 08 17:50:27 GMT 2023 - 10.9K bytes - Viewed (0) -
tests/test_ws_dependencies.py
def create_dependency(name: str): def fun(deps: DepList): deps.append(name) return Depends(fun) router = APIRouter(dependencies=[create_dependency("router")]) prefix_router = APIRouter(dependencies=[create_dependency("prefix_router")]) app = FastAPI(dependencies=[create_dependency("app")]) @app.websocket("/", dependencies=[create_dependency("index")])
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sun Jun 11 20:35:39 GMT 2023 - 2.1K bytes - Viewed (0) -
tests/test_request_body_parameters_media_type.py
"post": { "summary": "Create Product", "operationId": "create_product_products_post", "requestBody": { "content": { "application/vnd.api+json": { "schema": { "$ref": "#/components/schemas/Body_create_product_products_post" }
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 6.4K bytes - Viewed (0) -
tests/test_tutorial/test_request_files/test_tutorial001_03.py
"post": { "summary": "Create File", "operationId": "create_file_files__post", "requestBody": { "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Body_create_file_files__post" }
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 6K bytes - Viewed (0) -
fastapi/utils.py
if use_type is None: use_type = create_model(original_type.__name__, __base__=original_type) cloned_types[original_type] = use_type for f in original_type.__fields__.values(): use_type.__fields__[f.name] = create_cloned_field( f, cloned_types=cloned_types ) new_field = create_response_field(name=field.name, type_=use_type)
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 7.8K bytes - Viewed (0) -
tests/test_tutorial/test_testing/test_main_b_an.py
from docs_src.app_testing.app_b_an import test_main def test_app(): test_main.test_create_existing_item() test_main.test_create_item() test_main.test_create_item_bad_token() test_main.test_read_nonexistent_item() test_main.test_read_item()
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 303 bytes - Viewed (1) -
docs_src/path_operation_configuration/tutorial003.py
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat May 14 11:59:59 GMT 2022 - 517 bytes - Viewed (0) -
docs_src/app_testing/app_b_an/test_main.py
} def test_create_item_bad_token(): response = client.post( "/items/", headers={"X-Token": "hailhydra"}, json={"id": "bazz", "title": "Bazz", "description": "Drop the bazz"}, ) assert response.status_code == 400 assert response.json() == {"detail": "Invalid X-Token header"} def test_create_existing_item(): response = client.post(
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 1.8K bytes - Viewed (0)