Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 271 - 280 of 1,920 for ujson (0.02 seconds)

  1. docs_src/app_testing/app_b_py310/test_main.py

        assert response.status_code == 404
        assert response.json() == {"detail": "Item not found"}
    
    
    def test_create_item():
        response = client.post(
            "/items/",
            headers={"X-Token": "coneofsilence"},
            json={"id": "foobar", "title": "Foo Bar", "description": "The Foo Barters"},
        )
        assert response.status_code == 200
        assert response.json() == {
            "id": "foobar",
            "title": "Foo Bar",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 1.8K bytes
    - Click Count (0)
  2. tests/test_tutorial/test_body/test_tutorial004.py

            "/items/123",
            json={"name": "Foo", "price": 50.1},
        )
        assert response.status_code == 200
        assert response.json() == {
            "item_id": 123,
            "name": "Foo",
            "price": 50.1,
            "description": None,
            "tax": None,
        }
    
    
    def test_put_with_no_data(client: TestClient):
        response = client.put("/items/123", json={})
        assert response.status_code == 422
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  3. docs/ru/docs/advanced/additional-responses.md

    **FastAPI** возьмёт Pydantic-модель оттуда, сгенерирует JSON‑схему и поместит её в нужное место.
    
    Нужное место:
    
    * В ключе `content`, значением которого является другой JSON‑объект (`dict`), содержащий:
        * Ключ с типом содержимого, например `application/json`, значением которого является другой JSON‑объект, содержащий:
            * Ключ `schema`, значением которого является JSON‑схема из модели — вот нужное место.
    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)
  4. MIGRATION.md

    ```bash
    # Export Solr documents as JSON
    curl "http://solr-server:8983/solr/collection1/select?q=*:*&rows=10000&wt=json" \
      -o solr-export.json
    ```
    
    **Step 2: Transform to Fess Format**
    
    Create a transformation script to map Solr fields to Fess fields:
    
    ```python
    import json
    
    # Load Solr export
    with open('solr-export.json', 'r') as f:
        solr_data = json.load(f)
    
    # Transform documents
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 06 12:40:11 GMT 2025
    - 23.2K bytes
    - Click Count (0)
  5. docs/metrics/prometheus/grafana/README.md

    Refer to the dashboard [json file here](https://raw.githubusercontent.com/minio/minio/master/docs/metrics/prometheus/grafana/minio-dashboard.json).
    
    ![Grafana](https://raw.githubusercontent.com/minio/minio/master/docs/metrics/prometheus/grafana/grafana-minio.png)
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Thu Oct 31 17:38:53 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  6. docs/zh-hant/docs/advanced/additional-responses.md

        * 一個媒體型別作為鍵,例如 `application/json`,其值是另一個 JSON 物件,當中包含:
            * 鍵 `schema`,其值是該模型的 JSON Schema,這裡就是正確的位置。
                * **FastAPI** 會在這裡加入一個指向你 OpenAPI 中全域 JSON Schemas 的參照,而不是直接把它嵌入。如此一來,其他應用與用戶端可以直接使用那些 JSON Schemas,提供更好的程式碼產生工具等。
    
    ///
    
    這個路徑操作在 OpenAPI 中產生的回應將會是:
    
    ```JSON hl_lines="3-12"
    {
        "responses": {
            "404": {
                "description": "Additional Response",
                "content": {
    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)
  7. tests/test_sub_callbacks.py

    def test_get():
        response = client.post(
            "/invoices/", json={"id": "fooinvoice", "customer": "John", "total": 5.3}
        )
        assert response.status_code == 200, response.text
        assert response.json() == {"msg": "Invoice received"}
    
    
    def test_openapi_schema():
        with client:
            response = client.get("/openapi.json")
            assert response.json() == snapshot(
                {
                    "openapi": "3.1.0",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 14.3K bytes
    - Click Count (0)
  8. tests/test_security_oauth2_optional.py

        assert response.status_code == 200, response.text
        assert response.json() == {"username": "Bearer footokenbar"}
    
    
    def test_security_oauth2_password_other_header():
        response = client.get("/users/me", headers={"Authorization": "Other footokenbar"})
        assert response.status_code == 200, response.text
        assert response.json() == {"username": "Other footokenbar"}
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 9.8K bytes
    - Click Count (0)
  9. docs/es/docs/advanced/custom-response.md

    ///
    
    ## Responses JSON { #json-responses }
    
    Por defecto FastAPI devuelve responses JSON.
    
    Si declaras un [Response Model](../tutorial/response-model.md) FastAPI lo usará para serializar los datos a JSON, usando Pydantic.
    
    Si no declaras un response model, FastAPI usará el `jsonable_encoder` explicado en [Codificador Compatible con JSON](../tutorial/encoder.md) y lo pondrá en un `JSONResponse`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  10. cmd/batch-replicate.go

    	Type     BatchJobReplicateResourceType `yaml:"type" json:"type"`
    	Bucket   string                        `yaml:"bucket" json:"bucket"`
    	Prefix   string                        `yaml:"prefix" json:"prefix"`
    	Endpoint string                        `yaml:"endpoint" json:"endpoint"`
    	Path     string                        `yaml:"path" json:"path"`
    	Creds    BatchJobReplicateCredentials  `yaml:"credentials" json:"credentials"`
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Thu Aug 01 12:53:30 GMT 2024
    - 6.3K bytes
    - Click Count (0)
Back to Top