https://github.com/ot-nemoto/fastapi-tutorial
FastAPI チュートリアル
https://github.com/ot-nemoto/fastapi-tutorial
fastapi tutorial
Last synced: about 1 year ago
JSON representation
FastAPI チュートリアル
- Host: GitHub
- URL: https://github.com/ot-nemoto/fastapi-tutorial
- Owner: ot-nemoto
- Created: 2024-04-03T11:25:55.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-12T23:55:28.000Z (almost 2 years ago)
- Last Synced: 2024-04-13T20:28:25.833Z (almost 2 years ago)
- Topics: fastapi, tutorial
- Language: Python
- Homepage: https://fastapi.tiangolo.com/ja/tutorial/
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fastapi-tutorial
## 起動
```sh
uvicorn main:app --reload
```
### Swagger UI
- http://127.0.0.1:8000/docs
### ReDoc
- http://127.0.0.1:8000/redoc
### OpenAPI
- http://127.0.0.1:8000/openapi.json
## セクション
- [最初のステップ](tutorials/firstSteps.py)
- [パスパラメータ](tutorials/pathParams.py)
- [クエリパラメータ](tutorials/queryParams.py)
- [リクエストボディ](tutorials/body.py)
- [クエリパラメータと文字列の検証](tutorials/queryParamsStrValidations.py)
- [パスパラメータと数値の検証](tutorials/pathParamsNumericValidations.py)
- [ボディ - 複数のパラメータ](tutorials/bodyMultipleParams.py)
- [ボディ - フィールド](tutorials/bodyFields.py)
- [ボディ - ネストされたモデル](tutorials/bodyNestedModels.py)
- [スキーマの追加・例](tutorials/schemaExtraExample.py)
- [追加データ型](tutorials/extraDataTypes.py)
- [クッキーのパラメータ](tutorials/cookieParams.py)
- [ヘッダーのパラメータ](tutorials/headerParams.py)
- [レスポンスモデル](tutorials/responseModel.py)
- [モデル - より詳しく](tutorials/extraModels.py)
- [レスポンスステータスコード](tutorials/responseStatusCode.py)
- [フォームデータ](tutorials/requestForms.py)
- [Request Files](tutorials/requestFiles.py)
- [リクエストフォームとファイル](tutorials/requestFormsAndFiles.py)
- [エラーハンドリング](tutorials/handlingErrors.py)
- [Path Operation の設定](tutorials/pathOperationConfiguration.py)
- [JSON 互換エンコーダ](tutorials/encoder.py)
- [ボディ - 更新](tutorials/bodyUpdates.py)
- [依存関係 - 最初のステップ](tutorials/dependencies.py)
- [依存関係としてのクラス](tutorials/dependencies_/classes_as_dependencies.py)
- [サブ依存関係](tutorials/dependencies_/classes_as_dependencies.py)
- [path operation デコレータの依存関係](tutorials/dependencies_/dependencies_in_path_operation_decorators.py)
- [Global Dependencies](tutorials/dependencies_/global_dependencies.py)
- [yield を持つ依存関係](tutorials/dependencies_/dependencies_with_yield.py)
- [セキュリティ入門](tutorials/security.py)
- [セキュリティ - 最初の一歩](tutorials/security_/first_steps.py)
- [現在のユーザーの取得](tutorials/security_/get_current_user.py)
- [Simple OAuth2 with Password and Bearer](tutorials/security_/simple_oauth2.py)
- [パスワード(およびハッシュ化)による OAuth2、JWT トークンによる Bearer](tutorials/security_/oauth2_jwt.py)
- [ミドルウェア](tutorials/middleware.py)
- [CORS (オリジン間リソース共有)](tutorials/cors.py)