Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 491 - 500 of 936 for rjsonp (0.03 seconds)

  1. tests/test_default_response_class_router.py

    )
    
    
    client = TestClient(app)
    
    json_type = "application/json"
    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"] == json_type
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 20:49:20 GMT 2020
    - 5K bytes
    - Click Count (0)
  2. tests/test_response_dependency.py

        def endpoint(response: Annotated[Response, Depends(modify_response)]):
            return {"status": "ok"}
    
        client = TestClient(app)
        resp = client.get("/")
    
        assert resp.status_code == 200
        assert resp.json() == {"status": "ok"}
        assert resp.headers.get("X-Custom") == "modified"
    
    
    def test_response_with_depends_default():
        """Response type hint should work with Response = Depends(...)."""
        app = FastAPI()
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 05 18:23:16 GMT 2026
    - 5.2K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/app/web/api/admin/pathmap/ApiAdminPathmapAction.java

         * Returns list of path mapping settings.
         * Supports both GET and PUT requests for retrieving paginated path mapping configurations.
         *
         * @param body search parameters for filtering and pagination
         * @return JSON response containing path mapping settings list with pagination info
         */
        @Execute
        public JsonResponse<ApiResult> settings(final SearchBody body) {
            validateApi(body, messages -> {});
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/app/web/api/admin/relatedcontent/ApiAdminRelatedcontentAction.java

         * Supports both GET and PUT requests for retrieving paginated related content configurations.
         *
         * @param body search parameters for filtering and pagination
         * @return JSON response containing related content settings list with pagination info
         */
        @Execute
        public JsonResponse<ApiResult> settings(final SearchBody body) {
            validateApi(body, messages -> {});
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  5. cmd/bucket-policy-handlers.go

    package cmd
    
    import (
    	"bytes"
    	"encoding/json"
    	"io"
    	"net/http"
    
    	humanize "github.com/dustin/go-humanize"
    	"github.com/minio/madmin-go/v3"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/mux"
    	"github.com/minio/pkg/v3/policy"
    )
    
    const (
    	// As per AWS S3 specification, 20KiB policy JSON data is allowed.
    	maxBucketPolicySize = 20 * humanize.KiByte
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri May 24 23:05:23 GMT 2024
    - 6.1K bytes
    - Click Count (0)
  6. docs/es/docs/advanced/openapi-callbacks.md

    ```
    
    con un JSON body de:
    
    ```JSON
    {
        "id": "2expen51ve",
        "customer": "Mr. Richie Rich",
        "total": "9999"
    }
    ```
    
    luego *tu API* procesará la factura y, en algún momento después, enviará un request de callback al `callback_url` (la *API externa*):
    
    ```
    https://www.external.org/events/invoices/2expen51ve
    ```
    
    con un JSON body que contiene algo como:
    
    ```JSON
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 8K bytes
    - Click Count (0)
  7. docs/uk/docs/features.md

    * Автоматична документація моделей даних за допомогою [**JSON Schema**](https://json-schema.org/) (оскільки OpenAPI базується саме на JSON Schema).
    * Розроблено на основі цих стандартів після ретельного аналізу, а не як додатковий рівень поверх основної архітектури.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 15.1K bytes
    - Click Count (0)
  8. docs/zh/docs/tutorial/body.md

    与声明查询参数一样,包含默认值的模型属性是可选的,否则就是必选的。把默认值设为 `None` 可使其变为可选。
    
    例如,上述模型声明如下 JSON "object"(即 Python `dict`):
    
    ```JSON
    {
        "name": "Foo",
        "description": "An optional description",
        "price": 45.2,
        "tax": 3.5
    }
    ```
    
    ...由于 `description` 和 `tax` 是可选的(默认值为 `None`),下面的 JSON "object" 也有效:
    
    ```JSON
    {
        "name": "Foo",
        "price": 45.2
    }
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 5.9K bytes
    - Click Count (0)
  9. docs_src/dependency_testing/tutorial001_py310.py

        response = client.get("/items/")
        assert response.status_code == 200
        assert response.json() == {
            "message": "Hello Items!",
            "params": {"q": None, "skip": 5, "limit": 10},
        }
    
    
    def test_override_in_items_with_q():
        response = client.get("/items/?q=foo")
        assert response.status_code == 200
        assert response.json() == {
            "message": "Hello Items!",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 1.4K bytes
    - Click Count (0)
  10. docs/ja/docs/tutorial/first-steps.md

    #### データ「スキーマ」 { #data-schema }
    
    「スキーマ」という用語は、JSONコンテンツなどの一部のデータの形状を指す場合もあります。
    
    そのような場合、スキーマはJSON属性とそれらが持つデータ型などを意味します。
    
    #### OpenAPIおよびJSONスキーマ { #openapi-and-json-schema }
    
    OpenAPIはAPIのためのAPIスキーマを定義します。そして、そのスキーマは**JSONデータスキーマ**の標準規格である**JSON Schema**を利用するAPIによって送受されるデータの定義(または「スキーマ」)を含んでいます。
    
    #### `openapi.json`を確認 { #check-the-openapi-json }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 15.9K bytes
    - Click Count (0)
Back to Top