Search Options

Results per page
Sort
Preferred Languages
Advance

Results 631 - 640 of 1,143 for rjsonp (0.07 sec)

  1. tests/test_tutorial/test_metadata/test_tutorial001.py

    def test_items():
        response = client.get("/items/")
        assert response.status_code == 200, response.text
        assert response.json() == [{"name": "Katana"}]
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {
                "title": "ChimichangApp",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_dependencies/test_tutorial004_an_py39.py

        response = client.get(path)
        assert response.status_code == expected_status
        assert response.json() == expected_response
    
    
    @needs_py39
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  3. docs/ja/docs/tutorial/body.md

    例えば、上記のモデルは以下の様なJSON「`オブジェクト`」(もしくはPythonの `dict` ) を宣言しています:
    
    ```JSON
    {
        "name": "Foo",
        "description": "An optional description",
        "price": 45.2,
        "tax": 3.5
    }
    ```
    
    ...`description` と `tax` はオプショナル (デフォルト値は `None`) なので、以下のJSON「`オブジェクト`」も有効です:
    
    ```JSON
    {
        "name": "Foo",
        "price": 45.2
    }
    ```
    
    ## パラメータとして宣言
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  4. internal/bucket/replication/rule.go

    	XMLName                 xml.Name                `xml:"Rule" json:"Rule"`
    	ID                      string                  `xml:"ID,omitempty" json:"ID,omitempty"`
    	Status                  Status                  `xml:"Status" json:"Status"`
    	Priority                int                     `xml:"Priority" json:"Priority"`
    	DeleteMarkerReplication DeleteMarkerReplication `xml:"DeleteMarkerReplication" json:"DeleteMarkerReplication"`
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jan 24 23:22:20 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  5. docs/site-replication/run-ssec-object-replication-with-compression.sh

    echo "Stat minio1/test-bucket/encrypted"
    ./mc stat --no-list minio1/test-bucket/encrypted --enc-c "minio1/test-bucket/encrypted=${TEST_MINIO_ENC_KEY}" --insecure --json
    stat_out1=$(./mc stat --no-list minio1/test-bucket/encrypted --enc-c "minio1/test-bucket/encrypted=${TEST_MINIO_ENC_KEY}" --insecure --json)
    src_obj1_etag=$(echo "${stat_out1}" | jq '.etag')
    src_obj1_size=$(echo "${stat_out1}" | jq '.size')
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 08:03:58 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. cmd/admin-handlers-users.go

    }
    
    const (
    	allPoliciesFile           = "policies.json"
    	allUsersFile              = "users.json"
    	allGroupsFile             = "groups.json"
    	allSvcAcctsFile           = "svcaccts.json"
    	userPolicyMappingsFile    = "user_mappings.json"
    	groupPolicyMappingsFile   = "group_mappings.json"
    	stsUserPolicyMappingsFile = "stsuser_mappings.json"
    
    	iamAssetsDir = "iam-assets"
    )
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_testing_dependencies/test_tutorial001_an_py310.py

    @needs_py310
    def test_override_in_users():
        from docs_src.dependency_testing.tutorial001_an_py310 import client
    
        response = client.get("/users/")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "message": "Hello Users!",
            "params": {"q": None, "skip": 5, "limit": 10},
        }
    
    
    @needs_py310
    def test_override_in_users_with_q():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 2K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_testing_dependencies/test_tutorial001_an_py39.py

        assert response.json() == {
            "message": "Hello Users!",
            "params": {"q": None, "skip": 5, "limit": 10},
        }
    
    
    @needs_py39
    def test_override_in_users_with_q():
        from docs_src.dependency_testing.tutorial001_an_py39 import client
    
        response = client.get("/users/?q=foo")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "message": "Hello Users!",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 2K bytes
    - Viewed (0)
  9. 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:
    
    ```Python hl_lines="18  21  23"
    {!../../docs_src/path_params/tutorial005.py!}
    ```
    
    In your client you will get a JSON response like:
    
    ```JSON
    {
      "model_name": "alexnet",
      "message": "Deep Learning FTW!"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. docs/es/docs/tutorial/path-params.md

    Ellos serán convertidos a sus valores correspondientes (strings en este caso) antes de devolverlos al cliente:
    
    ```Python hl_lines="18  21  23"
    {!../../docs_src/path_params/tutorial005.py!}
    ```
    
    En tu cliente obtendrás una respuesta en JSON como:
    
    ```JSON
    {
      "model_name": "alexnet",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top