- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 478 for model (0.08 sec)
-
model.go
package gorm import "time" // Model a basic GoLang struct which includes the following fields: ID, CreatedAt, UpdatedAt, DeletedAt // It may be embedded into your model or you may build your own model without it // // type User struct { // gorm.Model // } type Model struct { ID uint `gorm:"primarykey"` CreatedAt time.Time UpdatedAt time.Time DeletedAt DeletedAt `gorm:"index"`
Registered: Sun Oct 27 09:35:08 UTC 2024 - Last Modified: Sat Feb 18 01:06:43 UTC 2023 - 396 bytes - Viewed (0) -
docs/zh/docs/tutorial/response-model.md
## 在文档中查看 当你查看自动化文档时,你可以检查输入模型和输出模型是否都具有自己的 JSON Schema: <img src="https://fastapi.tiangolo.com/img/tutorial/response-model/image01.png"> 并且两种模型都将在交互式 API 文档中使用: <img src="https://fastapi.tiangolo.com/img/tutorial/response-model/image02.png"> ## 响应模型编码参数 你的响应模型可以具有默认值,例如: ```Python hl_lines="11 13-14" {!../../docs_src/response_model/tutorial004.py!} ```
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.8K bytes - Viewed (0) -
docs/ru/docs/tutorial/response-model.md
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 30.4K bytes - Viewed (0) -
docs/en/docs/tutorial/response-model.md
## See it in the docs When you see the automatic docs, you can check that the input model and output model will both have their own JSON Schema: <img src="/img/tutorial/response-model/image01.png"> And both models will be used for the interactive API documentation: <img src="/img/tutorial/response-model/image02.png"> ## Other Return Type Annotations
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 18.1K bytes - Viewed (0) -
docs/de/docs/tutorial/response-model.md
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 19.8K bytes - Viewed (0) -
docs/ko/docs/tutorial/response-model.md
따라서 **FastAPI**는 출력 모델에서 선언하지 않은 모든 데이터를 (Pydantic을 사용하여) 필터링합니다. ## 문서에서 보기 자동 생성 문서를 보면 입력 모델과 출력 모델이 각자의 JSON 스키마를 가지고 있음을 확인할 수 있습니다: <img src="/img/tutorial/response-model/image01.png"> 그리고 두 모델 모두 대화형 API 문서에 사용됩니다: <img src="/img/tutorial/response-model/image02.png"> ## 응답 모델 인코딩 매개변수 응답 모델은 아래와 같이 기본값을 가질 수 있습니다: ```Python hl_lines="11 13-14" {!../../docs_src/response_model/tutorial004.py!} ```
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.1K bytes - Viewed (0) -
docs/em/docs/tutorial/response-model.md
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 15.8K bytes - Viewed (0) -
docs/ja/docs/tutorial/response-model.md
## ドキュメントを見る 自動ドキュメントを見ると、入力モデルと出力モデルがそれぞれ独自のJSON Schemaを持っていることが確認できます。 <img src="https://fastapi.tiangolo.com/img/tutorial/response-model/image01.png"> そして、両方のモデルは、対話型のAPIドキュメントに使用されます: <img src="https://fastapi.tiangolo.com/img/tutorial/response-model/image02.png"> ## レスポンスモデルのエンコーディングパラメータ レスポンスモデルにはデフォルト値を設定することができます: ```Python hl_lines="11 13 14"
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.2K bytes - Viewed (0) -
tests/test_response_model_include_exclude.py
return Model2( ref=Model1(foo="simple_include model foo", bar="simple_include model bar"), baz="simple_include model2 baz", ) @app.get( "/simple_include_dict", response_model=Model2, response_model_include={"baz": ..., "ref": {"foo"}}, ) def simple_include_dict(): return { "ref": { "foo": "simple_include_dict model foo",
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Mon Jul 19 19:14:58 UTC 2021 - 4K bytes - Viewed (0) -
tests/test_duplicate_models_openapi.py
from fastapi import FastAPI from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() class Model(BaseModel): pass class Model2(BaseModel): a: Model class Model3(BaseModel): c: Model d: Model2 @app.get("/", response_model=Model3) def f(): return {"c": {}, "d": {"a": {}}} client = TestClient(app) def test_get_api_route():
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.1K bytes - Viewed (0)