コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 7 of about 7 for examples (0.007 sec.)
スキーマの追加 - 例 13450
スキーマの追加 - 例 JSON Schemaに追加する情報を定義することができます。 一般的なユースケースはこのドキュメントで示されているように example を追加することです。 JSON Schemaの追加情報を宣言する方法はいくつかあります。 Pydanticの schema_extra ... : Union [ str , None ] = None price : float tax : Union [ float , None ] = None model_config = { "json_schema_extra" : { "examples" : [ { "name" : "Foo" , "description" : "A very nice Item" , "price" : 35.4 , "tax" : 3.2 , } ] } } @app . put ( "/items/ ... me : str description : str | None = None price : float tax : float | None = None model_config = { "json_schema_extra" : { "examples" : [ { "name" : "Foo" , "description" : "A very nice Item" , "price" : 35.4 , "tax" : 3.2 , } ] } } @app . put ( "/items/ ... tapi import FastAPI from pydantic import BaseModel , Field app = FastAPI () class Item ( BaseModel ): name : str = Field ( examples = [ "Foo" ]) description : Union [ str , None ] = Field ( default = None , examples = [ "A very nice Item" ]) price : floa ...
https://man.mtool.work/fastapi/0.115/tutorial/schema-extra-example/
Release Notes 9015
Release Notes Latest Changes 0.115.11 Fixes ? Add docs examples and tests (support) for Annotated custom validations, like AfterValidator , revert #13440 . PR #13442 by @tiangolo . New docs: Query Parameters and String Validations - Custom ... les. PR #13158 by @alejsdev . ? Update image in body-nested-model docs. PR #11063 by @untilhamza . ? Update fastapi-cli UI examples in docs. PR #13107 by @Zhongheng-Cheng . ? Add new GitHub Action to update contributors, translators, and translation revi ... 7 new deprecated Field parameter, remove URL from validation errors response. PR #11461 by @tiangolo . Docs ? Fix types in examples under docs_src/extra_data_types . PR #10535 by @nilslindemann . ? Update references to UJSON. PR #11464 by @tiangolo . ? T ... 11295 by @davidhuser . ?️ Improve Node.js script in docs to generate TypeScript clients. PR #11293 by @alejsdev . ? Update examples for tests to replace "inexistent" for "nonexistent". PR #11220 by @Homesteady . ? Update python-multipart GitHub link in a ...
https://man.mtool.work/fastapi/0.115/release-notes/
Development - Contributing 8688
Development - Contributing Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . First, you might want to see the basic ways to help FastAPI and get help . Developing If ... included/injected in the documentation when generating the site. Docs for tests Most of the tests actually run against the example source files in the documentation. This helps to make sure that: The documentation is up-to-date. The documentation example ... of the features are covered by the documentation, ensured by test coverage. Apps and docs at the same time If you run the examples with, e.g.: $ fastapi dev tutorial001.py <span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 ... 0.1:8008 Translation specific tips and guidelines Translate only the Markdown documents ( .md ). Do not translate the code examples at ./docs_src . In code blocks within the Markdown document, translate comments ( # a comment ), but leave the rest unchan ...
https://man.mtool.work/fastapi/0.115/contributing/
Advanced Middleware 8306
Advanced Middleware Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . In the main tutorial you read how to add Custom Middleware to your application. And then you al ... FastAPI includes several middlewares for common use cases, we'll see next how to use them. Technical Details For the next examples, you could also use from starlette.middleware.something import SomethingMiddleware . FastAPI provides several middlewares ...
https://man.mtool.work/fastapi/0.115/advanced/middleware/
Advanced Dependencies 8160
Advanced Dependencies Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . Parameterized dependencies All the dependencies we have seen are a fixed function or class. B ... " : fixed_content_included } Tip All this might seem contrived. And it might not be very clear how is it useful yet. These examples are intentionally simple, but show how it all works. In the chapters about security, there are utility functions that are ...
https://man.mtool.work/fastapi/0.115/advanced/advanced-dependencies/
OAuth2 scopes 7997
OAuth2 scopes Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You can use OAuth2 scopes directly with FastAPI , they are integrated to work seamlessly. This would ... paces). They are normally used to declare specific security permissions, for example: users:read or users:write are common examples. instagram_basic is used by Facebook / Instagram. https://www.googleapis.com/auth/drive is used by Google. Info In OAuth2 ... ementation specific. For OAuth2 they are just strings. Global view First, let's quickly see the parts that change from the examples in the main Tutorial - User Guide for OAuth2 with Password (and hashing), Bearer with JWT tokens . Now using OAuth2 scopes ...
https://man.mtool.work/fastapi/0.115/advanced/security/oauth2-scopes/
Simple OAuth2 with Password and Bearer 7942
Simple OAuth2 with Password and Bearer Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . Now let's build from the previous chapter and add the missing parts to have ... paces). They are normally used to declare specific security permissions, for example: users:read or users:write are common examples. instagram_basic is used by Facebook / Instagram. https://www.googleapis.com/auth/drive is used by Google. Info In OAuth2 ...
https://man.mtool.work/fastapi/0.115/tutorial/security/simple-oauth2/
PREV 1 NEXT