Search Options

Results per page
Sort
Preferred Languages
Advance

Results 751 - 760 of 1,387 for orjson (0.04 sec)

  1. docs/ru/docs/advanced/behind-a-proxy.md

    Поэтому фронтенд (который работает в браузере) попытается обратиться к `/openapi.json` и не сможет получить схему OpenAPI.
    
    Так как для нашего приложения используется прокси с префиксом пути `/api/v1`, фронтенду нужно забирать схему OpenAPI по `/api/v1/openapi.json`.
    
    ```mermaid
    graph LR
    
    browser("Browser")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  2. cmd/admin-handlers-site-replication.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"bytes"
    	"context"
    	"encoding/gob"
    	"encoding/json"
    	"errors"
    	"io"
    	"net/http"
    	"strings"
    	"sync/atomic"
    	"time"
    
    	"github.com/dustin/go-humanize"
    	"github.com/minio/madmin-go/v3"
    	xioutil "github.com/minio/minio/internal/ioutil"
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  3. 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_py39.py hl[18,21,23] *}
    
    In Ihrem Client erhalten Sie eine JSON-Response, wie etwa:
    
    ```JSON
    {
      "model_name": "alexnet",
      "message": "Deep Learning FTW!"
    }
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  4. docs/ko/docs/tutorial/response-model.md

    예를 들어, NoSQL 데이터베이스에 많은 선택적 속성이 있는 모델이 있지만, 기본값으로 가득 찬 매우 긴 JSON 응답을 보내고 싶지 않습니다.
    
    ### `response_model_exclude_unset` 매개변수 사용
    
    *경로 작동 데코레이터* 매개변수를 `response_model_exclude_unset=True`로 설정 할 수 있습니다:
    
    {* ../../docs_src/response_model/tutorial004.py hl[24] *}
    
    이러한 기본값은 응답에 포함되지 않고 실제로 설정된 값만 포함됩니다.
    
    따라서 해당 *경로 작동*에 ID가 `foo`인 항목(items)을 요청으로 보내면 (기본값을 제외한) 응답은 다음과 같습니다:
    
    ```JSON
    {
        "name": "Foo",
        "price": 50.2
    }
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. docs/zh/docs/tutorial/request-forms.md

    使用 `Form` 可以声明与 `Body` (及 `Query`、`Path`、`Cookie`)相同的元数据和验证。
    
    /// info | 说明
    
    `Form` 是直接继承自 `Body` 的类。
    
    ///
    
    /// tip | 提示
    
    声明表单体要显式使用 `Form` ,否则,FastAPI 会把该参数当作查询参数或请求体(JSON)参数。
    
    ///
    
    ## 关于 "表单字段"
    
    与 JSON 不同,HTML 表单(`<form></form>`)向服务器发送数据通常使用「特殊」的编码。
    
    **FastAPI** 要确保从正确的位置读取数据,而不是读取 JSON。
    
    /// note | 技术细节
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_custom_request_and_route/test_tutorial003.py

        return client
    
    
    def test_get(client: TestClient):
        response = client.get("/")
        assert response.json() == {"message": "Not timed"}
        assert "X-Response-Time" not in response.headers
    
    
    def test_get_timed(client: TestClient):
        response = client.get("/timed")
        assert response.json() == {"message": "It's the time of my life"}
        assert "X-Response-Time" in response.headers
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 894 bytes
    - Viewed (0)
  7. tests/test_tutorial/test_static_files/test_tutorial001.py

        assert response.status_code == 404, response.text
    
    
    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 Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_extra_models/test_tutorial003.py

        assert response.status_code == 200, response.text
        assert response.json() == {
            "description": "All my friends drive a low rider",
            "type": "car",
        }
    
    
    def test_get_plane(client: TestClient):
        response = client.get("/items/item2")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "description": "Music is my aeroplane, it's my aeroplane",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 6K bytes
    - Viewed (0)
  9. docs/pt/docs/tutorial/testing.md

    Depois é só fazer o mesmo nos seus testes.
    
    Por exemplo:
    
    * Para passar um parâmetro *path* ou *query*, adicione-o à própria URL.
    * Para passar um corpo JSON, passe um objeto Python (por exemplo, um `dict`) para o parâmetro `json`.
    * Se você precisar enviar *Dados de Formulário* em vez de JSON, use o parâmetro `data`.
    * Para passar *headers*, use um `dict` no parâmetro `headers`.
    * Para *cookies*, um `dict` no parâmetro `cookies`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  10. docs/site-replication/run-multi-site-minio-idp.sh

    set -x
    
    enabled_minio2=$(./mc stat --json minio2/newbucket-olock | jq -r .ObjectLock.enabled)
    if [ $? -ne 0 ]; then
    	echo "expected bucket to be mirrored with object-lock but not present, exiting..."
    	exit_1
    fi
    
    if [ "${enabled_minio2}" != "Enabled" ]; then
    	echo "expected bucket to be mirrored with object-lock enabled, exiting..."
    	exit_1
    fi
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Sep 24 08:03:58 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top