- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 766 for posty (0.03 sec)
-
docs_src/request_files/tutorial003_an_py39.py
from fastapi import FastAPI, File, UploadFile from fastapi.responses import HTMLResponse app = FastAPI() @app.post("/files/") async def create_files( files: Annotated[list[bytes], File(description="Multiple files as bytes")], ): return {"file_sizes": [len(file) for file in files]} @app.post("/uploadfiles/") async def create_upload_files( files: Annotated[
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 952 bytes - Viewed (0) -
tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial007.py
@needs_pydanticv2 def test_post(client: TestClient): yaml_data = """ name: Deadpoolio tags: - x-force - x-men - x-avengers """ response = client.post("/items/", content=yaml_data) assert response.status_code == 200, response.text assert response.json() == { "name": "Deadpoolio", "tags": ["x-force", "x-men", "x-avengers"], }
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 3.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/scheduler/ApiAdminSchedulerAction.java
@Execute public HtmlResponse index() { throw new UnsupportedOperationException(); } // POST /api/admin/scheduler/{id}/start @Execute(urlPattern = "{}/@word") public JsonResponse<ApiResult> post$start(final String id) { scheduledJobService.getScheduledJob(id).ifPresent(entity -> { if (!entity.isEnabled() || entity.isRunning()) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 7.6K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt
apply { this.url = url } fun includeIPv6(includeIPv6: Boolean) = apply { this.includeIPv6 = includeIPv6 } fun post(post: Boolean) = apply { this.post = post } fun resolvePrivateAddresses(resolvePrivateAddresses: Boolean) = apply { this.resolvePrivateAddresses = resolvePrivateAddresses }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Oct 31 09:27:31 UTC 2024 - 9.8K bytes - Viewed (0) -
docs/pt/docs/advanced/openapi-webhooks.md
## Documentando webhooks com o FastAPI e OpenAPI Com o **FastAPI**, utilizando o OpenAPI, você pode definir os nomes destes webhooks, os tipos das operações HTTP que a sua aplicação pode enviar (e.g. `POST`, `PUT`, etc.) e os **corpos** da requisição que a sua aplicação enviaria.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.3K bytes - Viewed (0) -
tests/test_tutorial/test_path_operation_configurations/test_tutorial005_py39.py
client = TestClient(app) return client @needs_py39 def test_query_params_str_validations(client: TestClient): response = client.post("/items/", json={"name": "Foo", "price": 42}) assert response.status_code == 200, response.text assert response.json() == { "name": "Foo", "price": 42, "description": None,
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Sep 28 04:14:40 UTC 2023 - 8.9K bytes - Viewed (0) -
tests/test_tutorial/test_generate_clients/test_tutorial003.py
client = TestClient(app) def test_post_items(): response = client.post("/items/", json={"name": "Foo", "price": 5}) assert response.status_code == 200, response.text assert response.json() == {"message": "Item received"} def test_post_users(): response = client.post( "/users/", json={"username": "Foo", "email": "******@****.***"} )
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 7.1K bytes - Viewed (0) -
tests/test_tutorial/test_request_files/test_tutorial001_02.py
client = TestClient(app) def test_post_form_no_body(): response = client.post("/files/") assert response.status_code == 200, response.text assert response.json() == {"message": "No file sent"} def test_post_uploadfile_no_body(): response = client.post("/uploadfile/") assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 8.2K bytes - Viewed (0) -
tests/test_tutorial/test_request_files/test_tutorial001_02_an_py310.py
return client @needs_py310 def test_post_form_no_body(client: TestClient): response = client.post("/files/") assert response.status_code == 200, response.text assert response.json() == {"message": "No file sent"} @needs_py310 def test_post_uploadfile_no_body(client: TestClient): response = client.post("/uploadfile/") assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 8.5K bytes - Viewed (0) -
tests/test_required_noneable.py
def test_required_nonable_body_embed_no_content(): response = client.post("/body-embed") assert response.status_code == 422 def test_required_nonable_body_embed_invalid(): response = client.post("/body-embed", json={"invalid": "invalid"}) assert response.status_code == 422 def test_required_noneable_body_embed_value(): response = client.post("/body-embed", json={"b": "foo"}) assert response.status_code == 200
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat May 14 19:08:31 UTC 2022 - 1.5K bytes - Viewed (0)