Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 79 for JSONResponse (0.38 seconds)

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

  1. src/test/java/org/codelibs/fess/app/web/api/admin/scheduler/ApiAdminSchedulerActionTest.java

            // Execute the real put$start() method
            final JsonResponse<ApiResult> jsonResponse = action.put$start("job-1");
    
            // Verify: response contains non-null jobLogId
            assertNotNull(jsonResponse);
            final ApiResult apiResult = jsonResponse.getJsonResult();
            assertNotNull(apiResult);
            final String responseJobLogId = extractJobLogId(apiResult);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:55:54 GMT 2026
    - 13K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/sso/SsoAuthenticatorTest.java

            // Verify initial state
            assertNull(result);
    
            // Setup with JSON response (easier to create without LastaFlute context)
            JsonResponse<?> expectedResponse = new JsonResponse<>(new HashMap<>());
            authenticator.setResponseForType(SsoResponseType.METADATA, expectedResponse);
    
            // Execute
            result = authenticator.getResponse(SsoResponseType.METADATA);
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.2K bytes
    - Click Count (1)
  3. docs/zh-hant/docs/advanced/custom-response.md

    如果你沒有宣告回應模型,FastAPI 會使用在[JSON 相容編碼器](../tutorial/encoder.md)中解釋的 `jsonable_encoder`,並將結果放進 `JSONResponse`。
    
    如果你宣告的 `response_class` 具有 JSON 的 media type(`application/json`),像 `JSONResponse`,你回傳的資料會自動以你在「路徑操作裝飾器」中宣告的任何 Pydantic `response_model` 進行轉換(與過濾)。但資料不會由 Pydantic 直接序列化成 JSON 位元組;取而代之,會先經由 `jsonable_encoder` 轉換,然後交給 `JSONResponse` 類別,該類別會使用 Python 標準的 JSON 函式庫將其序列化為位元組。
    
    ### JSON 效能 { #json-performance }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  4. docs/zh/docs/advanced/response-cookies.md

    需要注意,如果你直接反馈一个response对象,而不是使用`Response`入参,FastAPI则会直接反馈你封装的response对象。
    
    所以你需要确保你响应数据类型的正确性,如:你可以使用`JSONResponse`来兼容JSON的场景。
    
    同时,你也应当仅反馈通过`response_model`过滤过的数据。
    
    ///
    
    ### 更多信息 { #more-info }
    
    /// note | 技术细节
    
    你也可以使用`from starlette.responses import Response` 或者 `from starlette.responses import JSONResponse`。
    
    为了方便开发者,**FastAPI** 封装了相同数据类型,如`starlette.responses` 和 `fastapi.responses`。不过大部分response对象都是直接引用自Starlette。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 2.1K bytes
    - Click Count (0)
  5. docs/zh/docs/advanced/additional-responses.md

    /// warning | 警告
    
    这是一个相对高级的话题。
    
    如果你刚开始使用 **FastAPI**,可能暂时用不到。
    
    ///
    
    你可以声明附加响应,包括额外的状态码、媒体类型、描述等。
    
    这些附加响应会被包含在 OpenAPI 模式中,因此它们也会出现在 API 文档中。
    
    但是对于这些附加响应,你必须确保直接返回一个 `Response`(例如 `JSONResponse`),并携带你的状态码和内容。
    
    ## 带有 `model` 的附加响应 { #additional-response-with-model }
    
    你可以向你的*路径操作装饰器*传入参数 `responses`。
    
    它接收一个 `dict`:键是每个响应的状态码(例如 `200`),值是包含该响应信息的另一个 `dict`。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 8.7K bytes
    - Click Count (0)
  6. docs/ja/docs/advanced/additional-responses.md

    これは比較的高度なトピックです。
    
    FastAPI を使い始めたばかりであれば、これは不要かもしれません。
    
    ///
    
    追加のステータスコード、メディアタイプ、説明などを伴う追加レスポンスを宣言できます。
    
    それらの追加レスポンスは OpenAPI スキーマに含まれ、API ドキュメントにも表示されます。
    
    ただし、それらの追加レスポンスについては、ステータスコードとコンテンツを指定して `JSONResponse` などの `Response` を直接返す必要があります。
    
    ## `model` を使った追加レスポンス { #additional-response-with-model }
    
    *path operation デコレータ*に `responses` パラメータを渡せます。
    
    これは `dict` を受け取り、キーは各レスポンスのステータスコード(例: `200`)、値は各レスポンスの情報を含む別の `dict` です。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 10K bytes
    - Click Count (0)
  7. fastapi/routing.py

    from starlette.datastructures import FormData
    from starlette.exceptions import HTTPException
    from starlette.requests import Request
    from starlette.responses import JSONResponse, Response, StreamingResponse
    from starlette.routing import (
        BaseRoute,
        Match,
        compile_path,
        get_name,
    )
    from starlette.routing import Mount as Mount  # noqa
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 193K bytes
    - Click Count (0)
  8. CLAUDE.md

    - `@Execute` marks web endpoints
    - `@Resource` for DI
    - `@Secured({ "role", "role-view" })` for authorization
    - Return `HtmlResponse` for JSP, `JsonResponse` for APIs
    
    ### Service
    - Inject behaviors (Bhv) for data access
    - Use `OptionalEntity<T>` for nullable returns
    - Plain classes (no extends/implements)
    
    ### Helper
    - Stateless utility classes
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 19 09:48:10 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  9. fastapi/applications.py

    from starlette.middleware.errors import ServerErrorMiddleware
    from starlette.middleware.exceptions import ExceptionMiddleware
    from starlette.requests import Request
    from starlette.responses import HTMLResponse, JSONResponse, Response
    from starlette.routing import BaseRoute
    from starlette.types import ASGIApp, ExceptionHandler, Lifespan, Receive, Scope, Send
    from typing_extensions import deprecated
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Apr 01 16:16:24 GMT 2026
    - 178.6K bytes
    - Click Count (0)
  10. fastapi/openapi/utils.py

    from fastapi.utils import (
        deep_dict_update,
        generate_operation_id_for_path,
        is_body_allowed_for_status_code,
    )
    from pydantic import BaseModel
    from starlette.responses import JSONResponse
    from starlette.routing import BaseRoute
    
    validation_error_definition = {
        "title": "ValidationError",
        "type": "object",
        "properties": {
            "loc": {
                "title": "Location",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 25.6K bytes
    - Click Count (0)
Back to Top