- Sort Score
- Num 10 results
- Language All
Results 311 - 320 of 936 for rjsonp (0.09 seconds)
-
docs/pt/docs/tutorial/encoder.md
{* ../../docs_src/encoder/tutorial001_py310.py hl[4,21] *} Neste exemplo, ele converteria o modelo Pydantic em um `dict`, e o `datetime` em um `str`. O resultado de chamar a função é algo que pode ser codificado com o padrão do Python [`json.dumps()`](https://docs.python.org/3/library/json.html#json.dumps).Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 1.7K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/encoder.md
你可以使用 `jsonable_encoder` 來處理。 它接收一個物件(例如 Pydantic 模型),並回傳一個與 JSON 相容的版本: {* ../../docs_src/encoder/tutorial001_py310.py hl[4,21] *} 在此範例中,它會把 Pydantic 模型轉成 `dict`,並將 `datetime` 轉成 `str`。 呼叫後的結果可以用 Python 標準的 [`json.dumps()`](https://docs.python.org/3/library/json.html#json.dumps) 進行編碼。 它不會回傳一個包含 JSON 內容的大型 `str`(字串)。它會回傳 Python 標準的資料結構(例如 `dict`),其中的值與子值都與 JSON 相容。 /// noteCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 1.5K bytes - Click Count (0) -
docs/zh/docs/tutorial/encoder.md
对此你可以使用`jsonable_encoder`。 它接收一个对象,比如Pydantic模型,并会返回一个JSON兼容的版本: {* ../../docs_src/encoder/tutorial001_py310.py hl[4,21] *} 在这个例子中,它将Pydantic模型转换为`dict`,并将`datetime`转换为`str`。 调用它的结果后就可以使用Python标准编码中的[`json.dumps()`](https://docs.python.org/3/library/json.html#json.dumps)。 这个操作不会返回一个包含JSON格式(作为字符串)数据的庞大的`str`。它将返回一个Python标准数据结构(例如`dict`),其值和子值都与JSON兼容。 /// note | 注意Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 1.5K bytes - Click Count (0) -
tests/test_tutorial/test_body_updates/test_tutorial002.py
}, ) assert response.json() == { "name": "Fooz", "description": "Item description", "price": 3, "tax": 10.5, "tags": ["tag1", "tag2"], } def test_patch_name(client: TestClient): response = client.patch( "/items/bar", json={"name": "Barz"}, ) assert response.json() == { "name": "Barz",Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 7.8K bytes - Click Count (0) -
docs_src/app_testing/app_b_py310/test_main.py
assert response.status_code == 404 assert response.json() == {"detail": "Item not found"} def test_create_item(): response = client.post( "/items/", headers={"X-Token": "coneofsilence"}, json={"id": "foobar", "title": "Foo Bar", "description": "The Foo Barters"}, ) assert response.status_code == 200 assert response.json() == { "id": "foobar", "title": "Foo Bar",Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 1.8K bytes - Click Count (0) -
tests/test_tutorial/test_body/test_tutorial004.py
"/items/123", json={"name": "Foo", "price": 50.1}, ) assert response.status_code == 200 assert response.json() == { "item_id": 123, "name": "Foo", "price": 50.1, "description": None, "tax": None, } def test_put_with_no_data(client: TestClient): response = client.put("/items/123", json={}) assert response.status_code == 422Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 6.6K bytes - Click Count (0) -
docs/ru/docs/advanced/additional-responses.md
**FastAPI** возьмёт Pydantic-модель оттуда, сгенерирует JSON‑схему и поместит её в нужное место. Нужное место: * В ключе `content`, значением которого является другой JSON‑объект (`dict`), содержащий: * Ключ с типом содержимого, например `application/json`, значением которого является другой JSON‑объект, содержащий: * Ключ `schema`, значением которого является JSON‑схема из модели — вот нужное место.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 12.2K bytes - Click Count (0) -
MIGRATION.md
```bash # Export Solr documents as JSON curl "http://solr-server:8983/solr/collection1/select?q=*:*&rows=10000&wt=json" \ -o solr-export.json ``` **Step 2: Transform to Fess Format** Create a transformation script to map Solr fields to Fess fields: ```python import json # Load Solr export with open('solr-export.json', 'r') as f: solr_data = json.load(f) # Transform documents
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Nov 06 12:40:11 GMT 2025 - 23.2K bytes - Click Count (0) -
docs/metrics/prometheus/grafana/README.md
Refer to the dashboard [json file here](https://raw.githubusercontent.com/minio/minio/master/docs/metrics/prometheus/grafana/minio-dashboard.json). 
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Thu Oct 31 17:38:53 GMT 2024 - 2.4K bytes - Click Count (0) -
docs/ko/docs/alternatives.md
중첩 모델을 잘 처리하지 못합니다. 즉, 요청의 JSON body가 내부 필드를 가진 JSON 객체이고 그 내부 필드들이 다시 중첩된 JSON 객체인 경우, 제대로 문서화하고 검증할 수 없습니다. /// check | **FastAPI**에 영감을 준 것 Python 타입을 사용해 뛰어난 에디터 지원을 제공하기. 강력한 의존성 주입 시스템을 갖추기. 코드 반복을 최소화하는 방법을 찾기. ///
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 26.3K bytes - Click Count (0)