Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 143 for 404 (0.02 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/rest/compat/RestCompatTestTransformTask.java

            // a = the folder name
            // b = the file name without the .yml extension
            // c = the test name inside the .yml
            // For example: indices.get_mapping/20_missing_type/Non-existent type returns 404
            // However, the folder can be arbitrarily nest so, a == a1/a2/a3, and the test name can include forward slashes, so c == c1/c2/c3
            // So we also need to support a1/a2/a3/b/c1/c2/c3
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Sep 30 16:30:48 GMT 2021
    - 22.3K bytes
    - Click Count (0)
  2. tests/test_application.py

    @pytest.mark.parametrize(
        "path,expected_status,expected_response",
        [
            ("/api_route", 200, {"message": "Hello World"}),
            ("/non_decorated_route", 200, {"message": "Hello World"}),
            ("/nonexistent", 404, {"detail": "Not Found"}),
        ],
    )
    def test_get_path(path, expected_status, expected_response):
        response = client.get(path)
        assert response.status_code == expected_status
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 56.9K bytes
    - Click Count (0)
  3. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

    Jesse Wilson <******@****.***> 1762283632 -0500
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  4. tests/test_tutorial/test_additional_responses/test_tutorial001.py

        assert response.json() == {"id": "foo", "value": "there goes my hero"}
    
    
    def test_path_operation_not_found():
        response = client.get("/items/bar")
        assert response.status_code == 404, response.text
        assert response.json() == {"message": "Item not found"}
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  5. tests/test_tutorial/test_conditional_openapi/test_tutorial001.py

        client = get_client()
        response = client.get("/openapi.json")
        assert response.status_code == 404, response.text
        response = client.get("/docs")
        assert response.status_code == 404, response.text
        response = client.get("/redoc")
        assert response.status_code == 404, response.text
    
    
    def test_root():
        client = get_client()
        response = client.get("/")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  6. tests/test_tutorial/test_bigger_applications/test_main.py

    
    def test_items_bar_token_jessica(client: TestClient):
        response = client.get(
            "/items/bar?token=jessica", headers={"X-Token": "fake-super-secret-token"}
        )
        assert response.status_code == 404
        assert response.json() == {"detail": "Item not found"}
    
    
    def test_items_plumbus_with_no_token(client: TestClient):
        response = client.get(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  7. docs/ru/docs/advanced/additional-responses.md

    **FastAPI** возьмёт эту модель, сгенерирует для неё JSON‑схему и включит её в нужное место в OpenAPI.
    
    Например, чтобы объявить ещё один ответ со статус-кодом `404` и Pydantic-моделью `Message`, можно написать:
    
    {* ../../docs_src/additional_responses/tutorial001_py310.py hl[18,22] *}
    
    /// note | Примечание
    
    Имейте в виду, что необходимо возвращать `JSONResponse` напрямую.
    
    ///
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 12.2K bytes
    - Click Count (0)
  8. docs/tr/docs/advanced/additional-responses.md

    Bu response `dict`'lerinin her birinde, `response_model`'e benzer şekilde bir Pydantic model içeren `model` anahtarı olabilir.
    
    **FastAPI** bu modeli alır, JSON Schema'sını üretir ve OpenAPI'de doğru yere ekler.
    
    Örneğin, `404` status code'u ve `Message` Pydantic model'i ile başka bir response tanımlamak için şunu yazabilirsiniz:
    
    {* ../../docs_src/additional_responses/tutorial001_py310.py hl[18,22] *}
    
    /// note | Not
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 9.2K bytes
    - Click Count (0)
  9. tests/test_no_swagger_ui_redirect.py

        print(client.base_url)
        assert "oauth2RedirectUrl" not in response.text
    
    
    def test_swagger_ui_no_oauth2_redirect():
        response = client.get("/docs/oauth2-redirect")
        assert response.status_code == 404, response.text
    
    
    def test_response():
        response = client.get("/items/")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Apr 08 04:37:38 GMT 2020
    - 786 bytes
    - Click Count (0)
  10. docs/zh-hant/docs/advanced/additional-responses.md

    它接收一個 `dict`:鍵是各回應的狀態碼(例如 `200`),值是另一個 `dict`,其中包含每個回應的資訊。
    
    每個回應的 `dict` 都可以有一個鍵 `model`,包含一個 Pydantic 模型,與 `response_model` 類似。
    
    **FastAPI** 會取用該模型、產生其 JSON Schema,並把它放到 OpenAPI 中正確的位置。
    
    例如,要宣告一個狀態碼為 `404` 的額外回應,並使用 Pydantic 模型 `Message`,你可以這樣寫:
    
    {* ../../docs_src/additional_responses/tutorial001_py310.py hl[18,22] *}
    
    /// note | 注意
    
    請記住你必須直接回傳 `JSONResponse`。
    
    ///
    
    /// info | 說明
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 8.6K bytes
    - Click Count (0)
Back to Top