Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1251 - 1260 of 1,920 for ujson (0.02 seconds)

  1. tests/test_callable_endpoint.py

    
    endpoint = partial(main, "foo")
    
    app = FastAPI()
    
    app.get("/")(endpoint)
    
    
    client = TestClient(app)
    
    
    def test_partial():
        response = client.get("/?q=bar")
        data = response.json()
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 426 bytes
    - Click Count (0)
  2. cmd/admin-handlers-idp-config.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"context"
    	"encoding/json"
    	"errors"
    	"fmt"
    	"io"
    	"net/http"
    	"strings"
    
    	"github.com/minio/madmin-go/v3"
    	"github.com/minio/minio-go/v7/pkg/set"
    	"github.com/minio/minio/internal/config"
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  3. .ci/jobs.t/elastic+elasticsearch+multijob+third-party-tests-s3.yml

              set +x
              VAULT_TOKEN=$(vault write -field=token auth/approle/login role_id=$VAULT_ROLE_ID secret_id=$VAULT_SECRET_ID)
              export VAULT_TOKEN
              export data=$(vault read -format=json aws-test/creds/elasticsearch-ci-s3)
              export amazon_s3_access_key=$(echo $data | jq -r .data.access_key)
              export amazon_s3_secret_key=$(echo $data | jq -r .data.secret_key)
              unset VAULT_TOKEN data
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu May 06 21:46:09 GMT 2021
    - 1.2K bytes
    - Click Count (0)
  4. docs/zh/docs/how-to/extending-openapi.md

    在某些情况下,你可能需要修改生成的 OpenAPI 架构(schema)。
    
    本节将介绍如何实现。
    
    ## 常规流程 { #the-normal-process }
    
    常规(默认)流程如下。
    
    `FastAPI` 应用(实例)有一个 `.openapi()` 方法,预期返回 OpenAPI 架构。
    
    在创建应用对象时,会注册一个用于 `/openapi.json`(或你在 `openapi_url` 中设置的路径)的路径操作。
    
    它只会返回一个 JSON 响应,内容是应用 `.openapi()` 方法的结果。
    
    默认情况下,`.openapi()` 方法会检查属性 `.openapi_schema` 是否已有内容,若有则直接返回。
    
    如果没有,则使用 `fastapi.openapi.utils.get_openapi` 工具函数生成。
    
    该 `get_openapi()` 函数接收以下参数:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 3K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/it/admin/StorageTests.java

        }
    
        @Test
        void testCreateDir_ok() {
            // Create a directory
            Response response = given().contentType("application/json")
                    .header("Authorization", getTestToken())
                    .body("{\"name\":\"" + NAME_PREFIX + "testdir\"}")
                    .when()
                    .post(getApiPath() + "/createDir/");
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  6. docs/tr/docs/tutorial/query-params.md

    Tarayıcınızda şöyle bir URL açarsanız:
    
    ```
    http://127.0.0.1:8000/items/foo-item
    ```
    
    ...zorunlu `needy` parametresini eklemeden, şuna benzer bir hata görürsünüz:
    
    ```JSON
    {
      "detail": [
        {
          "type": "missing",
          "loc": [
            "query",
            "needy"
          ],
          "msg": "Field required",
          "input": null
        }
      ]
    }
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  7. docs/pt/llm-prompt.md

    * docs: documentação
    * FastAPI app: aplicação FastAPI
    * framework: framework (do not translate)
    * feature: funcionalidade
    * guides: tutoriais
    * I/O (as in "input and output"): I/O (do not translate to "E/S")
    * JSON Schema: JSON Schema
    * library: biblioteca
    * lifespan: lifespan (do not translate to "vida útil")
    * list (as in Python list): list
    * Machine Learning: Aprendizado de Máquina
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jan 16 12:27:02 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  8. tests/test_tutorial/test_behind_a_proxy/test_tutorial001_01.py

        assert response.headers["location"] == "https://example.com/items/"
    
    
    def test_no_redirect() -> None:
        response = client.get("/items/")
        assert response.status_code == 200
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 545 bytes
    - Click Count (0)
  9. docs/ja/docs/how-to/extending-openapi.md

    ## 通常のプロセス { #the-normal-process }
    
    通常(デフォルト)のプロセスは次のとおりです。
    
    `FastAPI` アプリケーション(インスタンス)には、OpenAPI スキーマを返すことが期待される `.openapi()` メソッドがあります。
    
    アプリケーションオブジェクトの作成時に、`/openapi.json`(または `openapi_url` に設定したパス)への path operation が登録されます。
    
    これは単に、アプリケーションの `.openapi()` メソッドの結果を含む JSON レスポンスを返します。
    
    デフォルトでは、`.openapi()` メソッドはプロパティ `.openapi_schema` に内容があるかを確認し、あればそれを返します。
    
    なければ、`fastapi.openapi.utils.get_openapi` にあるユーティリティ関数を使って生成します。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  10. docs/zh-hant/docs/history-design-future.md

    </blockquote>
    
    ## 調研 { #investigation }
    
    透過實際使用這些替代方案,我得以向它們學習、汲取想法,並以我能為自己與合作開發團隊找到的最佳方式加以整合。
    
    例如,很清楚理想上應以標準的 Python 型別提示為基礎。
    
    同時,最佳做法就是採用現有標準。
    
    因此,在開始撰寫 **FastAPI** 之前,我花了好幾個月研究 OpenAPI、JSON Schema、OAuth2 等規範,了解它們之間的關係、重疊與差異。
    
    ## 設計 { #design }
    
    接著,我花時間設計作為使用者(作為使用 FastAPI 的開發者)時希望擁有的開發者「API」。
    
    我在最受歡迎的 Python 編輯器中測試了多個想法:PyCharm、VS Code、基於 Jedi 的編輯器。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 3.6K bytes
    - Click Count (0)
Back to Top