Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 891 - 900 of 1,922 for djson (0.02 seconds)

  1. docs/de/docs/tutorial/path-params.md

    Diese werden zu ihren entsprechenden Werten konvertiert (in diesem Fall Strings), bevor sie zum Client übertragen werden:
    
    {* ../../docs_src/path_params/tutorial005_py310.py hl[18,21,23] *}
    
    In Ihrem Client erhalten Sie eine JSON-Response, wie etwa:
    
    ```JSON
    {
      "model_name": "alexnet",
      "message": "Deep Learning FTW!"
    }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 10K bytes
    - Click Count (0)
  2. tests/test_openapi_model_description_trim_on_formfeed.py

    
    @app.get("/foo")
    def foo(v: MyModel):  # pragma: no cover
        pass
    
    
    client = TestClient(app)
    
    
    def test_openapi():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        openapi_schema = response.json()
    
        assert openapi_schema["components"]["schemas"]["MyModel"]["description"] == (
            "A model with a form feed character in the title.\n"
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Jun 17 07:46:27 GMT 2025
    - 660 bytes
    - Click Count (0)
  3. docs/ru/docs/alternatives.md

    Он плохо справляется с вложенными моделями. Если JSON-тело запроса — это объект JSON, содержащий внутренние поля, которые сами являются вложенными объектами JSON, это нельзя как следует задокументировать и провалидировать.
    
    /// check | Вдохновило **FastAPI** на
    
    Использовать типы Python для отличной поддержки в редакторе кода.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 37.1K bytes
    - Click Count (0)
  4. fastapi/routing.py

                                    if subtype == "json" or subtype.endswith("+json"):
                                        json_body = await request.json()
                            if json_body != Undefined:
                                body = json_body
                            else:
                                body = body_bytes
            except json.JSONDecodeError as e:
                validation_error = RequestValidationError(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 193K bytes
    - Click Count (0)
  5. docs/fr/docs/tutorial/security/simple-oauth2.md

    Mais pour l'instant, concentrons‑nous sur les détails spécifiques dont nous avons besoin.
    
    ///
    
    {* ../../docs_src/security/tutorial003_an_py310.py hl[87] *}
    
    /// tip | Astuce
    
    D'après la spécification, vous devez renvoyer un JSON avec un `access_token` et un `token_type`, comme dans cet exemple.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 11.2K bytes
    - Click Count (0)
  6. docs/pt/docs/tutorial/security/simple-oauth2.md

    Mas, por enquanto, vamos nos concentrar nos detalhes específicos de que precisamos.
    
    ///
    
    {* ../../docs_src/security/tutorial003_an_py310.py hl[87] *}
    
    /// tip | Dica
    
    Pela especificação, você deve retornar um JSON com um `access_token` e um `token_type`, o mesmo que neste exemplo.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 10.2K bytes
    - Click Count (0)
  7. docs/zh-hant/docs/advanced/stream-data.md

    # 串流資料 { #stream-data }
    
    如果你要串流可用 JSON 結構化的資料,應該[串流 JSON Lines](../tutorial/stream-json-lines.md)。
    
    但如果你想串流純二進位資料或字串,以下是做法。
    
    /// info
    
    已在 FastAPI 0.134.0 新增。
    
    ///
    
    ## 使用情境 { #use-cases }
    
    當你想串流純字串時可以用這個機制,例如直接轉發來自 AI LLM 服務的輸出。
    
    你也可以用它來串流大型二進位檔案,邊讀邊將每個區塊(chunk)串流出去,而不必一次把整個檔案載入記憶體。
    
    你也可以用同樣方式串流視訊或音訊,甚至可以在處理的同時即時產生並傳送。
    
    ## 使用 `yield` 的 `StreamingResponse` { #a-streamingresponse-with-yield }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:33:04 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  8. internal/event/config.go

    }
    
    // common - represents common elements inside <QueueConfiguration>, <CloudFunctionConfiguration>
    // and <TopicConfiguration>
    type common struct {
    	ID     string `xml:"Id" json:"Id"`
    	Filter S3Key  `xml:"Filter" json:"Filter"`
    	Events []Name `xml:"Event" json:"Event"`
    }
    
    // Queue - represents elements inside <QueueConfiguration>
    type Queue struct {
    	common
    	ARN ARN `xml:"Queue"`
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  9. docs/zh-hant/docs/advanced/behind-a-proxy.md

    到目前為止,一切都會如常運作。
    
    但是,當你打開整合的文件 UI(前端)時,它會預期在 `/openapi.json` 取得 OpenAPI 模式,而不是在 `/api/v1/openapi.json`。
    
    因此,前端(在瀏覽器中執行)會嘗試存取 `/openapi.json`,但無法取得 OpenAPI 模式。
    
    因為我們的應用前面有一個將路徑前綴設定為 `/api/v1` 的代理,所以前端需要從 `/api/v1/openapi.json` 取得 OpenAPI 模式。
    
    ```mermaid
    graph LR
    
    browser("Browser")
    proxy["Proxy on http://0.0.0.0:9999/api/v1/app"]
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 15.3K bytes
    - Click Count (0)
  10. internal/config/batch/batch.go

    )
    
    var configMu sync.RWMutex
    
    // Config represents the batch job settings.
    type Config struct {
    	ReplicationWorkersWait time.Duration `json:"replicationWorkersWait"`
    	KeyRotationWorkersWait time.Duration `json:"keyRotationWorkersWait"`
    	ExpirationWorkersWait  time.Duration `json:"expirationWorkersWait"`
    }
    
    // ExpirationWait returns the duration for which a batch expiration worker
    // would wait before working on next object.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri May 24 23:05:23 GMT 2024
    - 4.7K bytes
    - Click Count (0)
Back to Top