Search Options

Results per page
Sort
Preferred Languages
Advance

Results 791 - 800 of 1,775 for gson (0.02 sec)

  1. tests/test_tutorial/test_middleware/test_tutorial001.py

    client = TestClient(app)
    
    
    def test_response_headers():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert "X-Process-Time" in response.headers
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {
                "title": "FastAPI",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 604 bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/api/admin/relatedquery/ApiAdminRelatedqueryAction.java

        /**
         * Retrieves a list of related query settings.
         *
         * @param body search parameters for filtering and pagination
         * @return JSON response containing related query configurations
         */
        // GET /api/admin/relatedquery/settings
        // PUT /api/admin/relatedquery/settings
        @Execute
        public JsonResponse<ApiResult> settings(final SearchBody body) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/api/admin/failureurl/ApiAdminFailureurlAction.java

        // GET /api/admin/failureurl/logs
        // PUT /api/admin/failureurl/logs
        /**
         * Retrieves failure URL logs with pagination.
         *
         * @param body the search criteria
         * @return JSON response containing the failure URL logs
         */
        @Execute
        public JsonResponse<ApiResult> logs(final SearchBody body) {
            validateApi(body, messages -> {});
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/api/admin/crawlinginfo/ApiAdminCrawlinginfoAction.java

        /**
         * Retrieves crawling info logs with pagination support.
         *
         * @param body the search body containing pagination and filter parameters
         * @return JSON response containing list of crawling info logs
         */
        // GET /api/admin/crawlinginfo/logs
        // PUT /api/admin/crawlinginfo/logs
        @Execute
        public JsonResponse<ApiResult> logs(final SearchBody body) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_extra_models/test_tutorial003.py

        assert response.status_code == 200, response.text
        assert response.json() == {
            "description": "All my friends drive a low rider",
            "type": "car",
        }
    
    
    def test_get_plane(client: TestClient):
        response = client.get("/items/item2")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "description": "Music is my aeroplane, it's my aeroplane",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 6K bytes
    - Viewed (0)
  6. tests/test_default_response_class.py

    text_type = "text/plain; charset=utf-8"
    html_type = "text/html; charset=utf-8"
    override_type = "application/x-override"
    
    
    def test_app():
        with client:
            response = client.get("/")
        assert response.json() == {"msg": "Hello World"}
        assert response.headers["content-type"] == orjson_type
    
    
    def test_app_override():
        with client:
            response = client.get("/override")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Mar 01 20:49:20 UTC 2020
    - 5.2K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_security/test_tutorial002.py

        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Not authenticated"}
        assert response.headers["WWW-Authenticate"] == "Bearer"
    
    
    def test_token(client: TestClient):
        response = client.get("/users/me", headers={"Authorization": "Bearer testtoken"})
        assert response.status_code == 200, response.text
        assert response.json() == {
            "username": "testtokenfakedecoded",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/security/simple-oauth2.md

    В следующей главе вы увидите реальную защищённую реализацию с хешированием паролей и токенами <abbr title="JSON Web Tokens – JSON веб-токены">JWT</abbr>.
    
    Но пока давайте сосредоточимся на необходимых нам деталях.
    ///
    
    {* ../../docs_src/security/tutorial003_an_py310.py hl[87] *}
    
    /// tip | Подсказка
    Согласно спецификации, вы должны возвращать JSON с `access_token` и `token_type`, как в данном примере.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:24:39 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  9. docs/es/docs/advanced/path-operation-advanced-configuration.md

    Y podrías hacer esto incluso si el tipo de datos en el request no es JSON.
    
    Por ejemplo, en esta aplicación no usamos la funcionalidad integrada de FastAPI para extraer el JSON Schema de los modelos Pydantic ni la validación automática para JSON. De hecho, estamos declarando el tipo de contenido del request como YAML, no JSON:
    
    //// tab | Pydantic v2
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  10. docs/pt/docs/advanced/path-operation-advanced-configuration.md

    E você pode fazer isso até mesmo quando os dados da requisição não seguem o formato JSON.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 8.7K bytes
    - Viewed (0)
Back to top