Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 861 - 870 of 1,922 for djson (0.02 seconds)

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

    You can return *enum members* from your *path operation*, even nested in a JSON body (e.g. a `dict`).
    
    They will be converted to their corresponding values (strings in this case) before returning them to the client:
    
    {* ../../docs_src/path_params/tutorial005_py310.py hl[18,21,23] *}
    
    In your client you will get a JSON response like:
    
    ```JSON
    {
      "model_name": "alexnet",
      "message": "Deep Learning FTW!"
    }
    ```
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  2. cmd/admin-handlers-pools.go

    		return
    	}
    
    	// Rebalance routine is run on the first node of any pool participating in rebalance.
    	pools.StartRebalance()
    
    	b, err := json.Marshal(struct {
    		ID string `json:"id"`
    	}{ID: id})
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	writeSuccessResponseJSON(w, b)
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  3. docs/zh-hant/docs/tutorial/testing.md

    然後在你的測試中做一樣的事即可。
    
    例如:
    
    * 要傳遞路徑或查詢參數,直接把它加在 URL 上。
    * 要傳遞 JSON 本文,將 Python 物件(例如 `dict`)傳給 `json` 參數。
    * 如果需要送出表單資料(Form Data)而不是 JSON,改用 `data` 參數。
    * 要傳遞標頭(headers),在 `headers` 參數中放一個 `dict`。
    * 對於 Cookie(cookies),在 `cookies` 參數中放一個 `dict`。
    
    關於如何把資料傳給後端(使用 `httpx` 或 `TestClient`),更多資訊請參考 [HTTPX 文件](https://www.python-httpx.org)。
    
    /// info
    
    請注意,`TestClient` 接收的是可轉為 JSON 的資料,而不是 Pydantic models。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  4. docs/zh/docs/tutorial/testing.md

    接着只需在测试中同样操作。
    
    示例:
    
    * 传一个*路径* 或*查询* 参数,添加到URL上。
    * 传一个JSON体,传一个Python对象(例如一个`dict`)到参数 `json`。
    * 如果你需要发送 *Form Data* 而不是 JSON,使用 `data` 参数。
    * 要发送 *headers*,传 `dict` 给 `headers` 参数。
    * 对于 *cookies*,传 `dict` 给 `cookies` 参数。
    
    关于如何传数据给后端的更多信息(使用 `httpx` 或 `TestClient`),请查阅 [HTTPX 文档](https://www.python-httpx.org)。
    
    /// info | 信息
    
    注意 `TestClient` 接收可以被转化为JSON的数据,而不是Pydantic模型。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  5. docs/es/docs/how-to/conditional-openapi.md

    <span style="color: green;">INFO</span>:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    ```
    
    </div>
    
    Luego, si vas a las URLs en `/openapi.json`, `/docs`, o `/redoc`, solo obtendrás un error `404 Not Found` como:
    
    ```JSON
    {
        "detail": "Not Found"
    }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  6. docs/en/docs/reference/responses.md

    However, they are now deprecated as you will now get better performance by using a [Response Model - Return Type](https://fastapi.tiangolo.com/tutorial/response-model/).
    
    That way, Pydantic will serialize the data into JSON bytes on the Rust side, which will achieve better performance than these custom JSON responses.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 22 16:34:59 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  7. docs/ja/docs/tutorial/security/simple-oauth2.md

    ///
    
    ## トークンを返す { #return-the-token }
    
    `token` エンドポイントのレスポンスは JSON オブジェクトでなければなりません。
    
    `token_type` を含める必要があります。ここでは「Bearer」トークンを使うので、トークンタイプは「`bearer`」です。
    
    そして `access_token` を含め、その中にアクセストークンの文字列を入れます。
    
    この単純な例では、完全に安全ではありませんが、トークンとして同じ `username` をそのまま返します。
    
    /// tip | 豆知識
    
    次の章では、パスワードハッシュ化と <abbr title="JSON Web Tokens - JSON Web Token">JWT</abbr> トークンを使った本当に安全な実装を見ます。
    
    しかし今は、必要な特定の詳細に集中しましょう。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 12.1K bytes
    - Click Count (0)
  8. docs/uk/docs/tutorial/request-files.md

    ## Що таке «Form Data» { #what-is-form-data }
    
    Спосіб, у який HTML-форми (`<form></form>`) надсилають дані на сервер, зазвичай використовує «спеціальне» кодування для цих даних, відмінне від JSON.
    
    **FastAPI** забезпечить зчитування цих даних з правильного місця, а не з JSON.
    
    /// note | Технічні деталі
    
    Дані з форм зазвичай кодуються за допомогою «media type» `application/x-www-form-urlencoded`, якщо вони не містять файлів.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 11K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/job/IndexExportFormatter.java

    public interface IndexExportFormatter {
    
        /**
         * Returns the file extension for this format (e.g. ".html", ".json").
         *
         * @return the file extension including the leading dot
         */
        String getFileExtension();
    
        /**
         * Returns the default index file name for this format (e.g. "index.html", "index.json").
         *
         * @return the index file name
         */
        String getIndexFileName();
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Feb 07 10:31:36 GMT 2026
    - 1.5K bytes
    - Click Count (0)
  10. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/AcceptedApiChanges.groovy

            acceptedApiChanges.acceptedChanges = [:]
            for (String jsonText : jsonTexts) {
                def json = new Gson().fromJson(jsonText, new TypeToken<Map<String, List<AcceptedApiChange>>>() {}.type)
                Map<ApiChange, String> acceptedChanges = json.acceptedApiChanges.collectEntries { jsonChange ->
                    [(jsonChange.toApiChange()): jsonChange.acceptation]
                }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Jun 04 14:00:46 GMT 2024
    - 1.9K bytes
    - Click Count (0)
Back to Top