Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,360 for Responses (0.28 sec)

  1. docs/fr/docs/advanced/path-operation-advanced-configuration.md

    Il inclut les `tags`, `parameters`, `requestBody`, `responses`, etc.
    
    Ce schéma OpenAPI spécifique aux *operations* est normalement généré automatiquement par **FastAPI**, mais vous pouvez également l'étendre.
    
    !!! tip "Astuce"
        Si vous avez seulement besoin de déclarer des réponses supplémentaires, un moyen plus pratique de le faire est d'utiliser les [réponses supplémentaires dans OpenAPI](additional-responses.md){.internal-link target=_blank}.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_custom_response/test_tutorial006c.py

    client = TestClient(app)
    
    
    def test_redirect_status_code():
        response = client.get("/pydantic", follow_redirects=False)
        assert response.status_code == 302
        assert response.headers["location"] == "https://docs.pydantic.dev/"
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 899 bytes
    - Viewed (0)
  3. tests/test_tutorial/test_request_files/test_tutorial001.py

        with path.open("rb") as file:
            response = client.post("/uploadfile/", files={"file": file})
        assert response.status_code == 200, response.text
        assert response.json() == {"filename": "test.txt"}
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_request_files/test_tutorial001_an.py

            response = client.post("/uploadfile/", files={"file": file})
        assert response.status_code == 200, response.text
        assert response.json() == {"filename": "test.txt"}
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/cli-runtime/artifacts/openapi/swagger-with-shared-parameters.json

              "type": "string"
            }
          },
          "required": [
            "expression"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 20 15:45:02 UTC 2024
    - 2.3M bytes
    - Viewed (0)
  6. tests/test_tutorial/test_response_model/test_tutorial005.py

    client = TestClient(app)
    
    
    def test_read_item_name():
        response = client.get("/items/bar/name")
        assert response.status_code == 200, response.text
        assert response.json() == {"name": "Bar", "description": "The Bar fighters"}
    
    
    def test_read_item_public_data():
        response = client.get("/items/bar/public")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "name": "Bar",
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Aug 04 20:47:07 UTC 2023
    - 6K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_response_model/test_tutorial006.py

    client = TestClient(app)
    
    
    def test_read_item_name():
        response = client.get("/items/bar/name")
        assert response.status_code == 200, response.text
        assert response.json() == {"name": "Bar", "description": "The Bar fighters"}
    
    
    def test_read_item_public_data():
        response = client.get("/items/bar/public")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "name": "Bar",
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Aug 04 20:47:07 UTC 2023
    - 6K bytes
    - Viewed (0)
  8. pilot/pkg/features/xds.go

    		"If true, Pilot will cache XDS responses.").Get()
    
    	// EnableCDSCaching determines if CDS caching is enabled. This is explicitly split out of ENABLE_XDS_CACHE,
    	// so that in case there are issues with the CDS cache we can just disable the CDS cache.
    	EnableCDSCaching = env.Register("PILOT_ENABLE_CDS_CACHE", true,
    		"If true, Pilot will cache CDS responses. Note: this depends on PILOT_ENABLE_XDS_CACHE.").Get()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Feb 24 06:18:36 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. docs/em/docs/tutorial/bigger-applications.md

    ✋️ 🔜 👆 💭 ❔ ⚫️ 👷, 👆 💪 ⚙️ ⚖ 🗄 👆 👍 📱 🙅‍♂ 🤔 ❔ 🏗 👫. 👶
    
    ### 🚮 🛃 `tags`, `responses`, & `dependencies`
    
    👥 🚫 ❎ 🔡 `/items` 🚫 `tags=["items"]` 🔠 *➡ 🛠️* ↩️ 👥 🚮 👫 `APIRouter`.
    
    ✋️ 👥 💪 🚮 _🌅_ `tags` 👈 🔜 ✔ 🎯 *➡ 🛠️*, & ➕ `responses` 🎯 👈 *➡ 🛠️*:
    
    ```Python hl_lines="30-31" title="app/routers/items.py"
    {!../../../docs_src/bigger_applications/app/routers/items.py!}
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_response_model/test_tutorial006_py310.py

    def test_read_item_name(client: TestClient):
        response = client.get("/items/bar/name")
        assert response.status_code == 200, response.text
        assert response.json() == {"name": "Bar", "description": "The Bar fighters"}
    
    
    @needs_py310
    def test_read_item_public_data(client: TestClient):
        response = client.get("/items/bar/public")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "name": "Bar",
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Aug 04 20:47:07 UTC 2023
    - 6.2K bytes
    - Viewed (0)
Back to top