Results of 1 - 6 of about 6 for date (0.003 sec.)
- OpenAPI Webhooks 10967
- OpenAPI Webhooks Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . There are cases where you want to tell your API users that your app could call their app (sending
...define webhooks , the same way you would define path operations , for example with @app.webhooks.post() . Python 3.8+ from datetime import datetime from fastapi import FastAPI from pydantic import BaseModel app = FastAPI () class Subscription ( BaseM...odel ): username : str monthly_fee : float start_date : datetime @app . webhooks . post ( "new-subscription" ) def new_subscription ( body : Subscription ): """ When a new user... - https://man.mtool.work/fastapi/0.115/advanced/openapi-webhooks/
- 追加データ型 10967
- 追加データ型 今までは、以下のような一般的なデータ型を使用してきました: int float str bool しかし、より複雑なデータ型を使用することもできます。 そして、今まで見てきたのと同じ機能を持つことになります: 素晴らしいエディタのサポート 受信したリク
...通のIDとして使用される、標準的な「ユニバーサルにユニークな識別子」です。 リクエストとレスポンスでは str として表現されます。 datetime.datetime : Pythonの datetime.datetime です。 リクエストとレスポンスはISO 8601形式の str で表現されます: 2008-09-15T15:...53:00+05:00 datetime.date : Pythonの datetime.date です。 リクエストとレスポンスはISO 8601形式の str で表現されます: 2008-09-15 datetime.ti...me : Pythonの datetime.time . リクエストとレスポンスはISO 8601形式の str で表現されます: 14:23:55.003 datetime.timedelta : Pythonの datetime.... - https://man.mtool.work/fastapi/0.115/tutorial/extra-data-types/
- 機能 10236
- 機能 FastAPIの機能 FastAPI は以下の機能をもちます: オープンスタンダード準拠 API作成のための OpenAPI 。これは、 path operations の宣言、パラメータ、ボディリクエスト、セキュリティなどを含んでいます。 JSONスキーマ を使用したデータモデルのドキュ
...な復習が必要な場合は、短いチュートリアル( Python Types )を参照してください。 型を使用した標準的なPythonを記述します: from datetime import date from pydantic import BaseModel # Declare a variable as a str # and get editor support inside the function...def main ( user_id : str ): return user_id # A Pydantic model class User ( BaseModel ): id : int name : str joined : date これは以下のように用いられます: my_user : User = User ( id = 3 , name = "John Doe" , joined = "2018-07-19" ) second_user_d... - https://man.mtool.work/fastapi/0.115/features/
- WebSocket 8774
- WebSocket FastAPI で WebSocket が使用できます。 WebSockets のインストール まず WebSockets のインストールが必要です。 $ pip install websockets ---> 100% WebSocket クライアント 本番環境 本番環境では、React、Vue.js、Angularなどの最新のフレーム
...ext" id="messageText" autocomplete="off"/> <button>Send</button> </form> <ul id='messages'> </ul> <script> var client_id = Date.now() document.querySelector("#ws-id").textContent = client_id; var ws = new WebSocket(`ws://localhost:8000/ws/$ {client_i...ext" id="messageText" autocomplete="off"/> <button>Send</button> </form> <ul id='messages'> </ul> <script> var client_id = Date.now() document.querySelector("#ws-id").textContent = client_id; var ws = new WebSocket(`ws://localhost:8000/ws/$ {client_i... - https://man.mtool.work/fastapi/0.115/advanced/websockets/
- Development - Contributing 8042
- 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
...I, and run it with the Python from your local environment, it will use your cloned local FastAPI source code. And if you update that local FastAPI source code when you run that Python file again, it will use the fresh version of FastAPI you just edit...tually run against the example source files in the documentation. This helps to make sure that: The documentation is up-to-date. The documentation examples can be run as is. Most of the features are covered by the documentation, ensured by test cover...tapi-people.md external-links.md newsletter.md management-tasks.md management.md contributing.md Some of these files are updated very frequently and a translation would always be behind, or they include the main content from English source files, etc... - https://man.mtool.work/fastapi/0.115/contributing/
- Release Notes 5849
- 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
...on . Translations ? Add Russian translation for docs/ru/docs/tutorial/middleware.md . PR #13412 by @alv2017 . Internal ? Update FastAPI GitHub topic repositories. PR #13439 by @tiangolo . ? Update FastAPI People - Contributors and Translators. PR #13...432 by @tiangolo . ? Update FastAPI People - Sponsors. PR #13433 by @tiangolo . 0.115.10 Fixes ♻️ Update internal annotation usage for compatibility w...tests for app_testing . PR #13220 by @alv2017 . ✅ Simplify tests for dependency_testing . PR #13223 by @alv2017 . Docs ? Update sponsors: CodeRabbit logo. PR #13424 by @tiangolo . ? Unify the badges across all tutorial translations. PR #13329 by @svl... - https://man.mtool.work/fastapi/0.115/release-notes/
PREV
1
NEXT