Results of 1 - 6 of about 6 for long (0.003 sec.)
- Path Operationの設定 12338
- Path Operationの設定 path operationデコレータ を設定するためのパラメータがいくつかあります。 注意 これらのパラメータは path operation関数 ではなく、 path operationデコレータ に直接渡されることに注意してください。 レスポンスステータスコード
...( item : Item ): """ Create an item with all the information: - **name**: each item must have a name - **description**: a long description - **price**: required - **tax**: if the item doesn't have tax, you can omit this - **tags**: a set of unique t...( item : Item ): """ Create an item with all the information: - **name**: each item must have a name - **description**: a long description - **price**: required - **tax**: if the item doesn't have tax, you can omit this - **tags**: a set of unique t...( item : Item ): """ Create an item with all the information: - **name**: each item must have a name - **description**: a long description - **price**: required - **tax**: if the item doesn't have tax, you can omit this - **tags**: a set of unique t... - https://man.mtool.work/fastapi/0.115/tutorial/path-operation-configuration/
- クエリパラメータ 10821
- クエリパラメータ パスパラメータではない関数パラメータを宣言すると、それらは自動的に "クエリ" パラメータとして解釈されます。 Python 3.8+ from fastapi import FastAPI app = FastAPI () fake_items_db = [{ "item_name" : "Foo" }, { "item_name" : "
...} if q : item . update ({ "q" : q }) if not short : item . update ( { "description" : "This is an amazing item that has a long description" } ) return item ? Other versions and variants Python 3.10+ from fastapi import FastAPI app = FastAPI () @app...} if q : item . update ({ "q" : q }) if not short : item . update ( { "description" : "This is an amazing item that has a long description" } ) return item この場合、以下にアクセスすると: http://127.0.0.1:8000/items/foo?short=1 もしくは、 http://127...} if q : item . update ({ "q" : q }) if not short : item . update ( { "description" : "This is an amazing item that has a long description" } ) return item ? Other versions and variants Python 3.10+ from fastapi import FastAPI app = FastAPI () @app... - https://man.mtool.work/fastapi/0.115/tutorial/query-params/
- Advanced Middleware 8445
- 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
...specification, you can use any ASGI middleware. A middleware doesn't have to be made for FastAPI or Starlette to work, as long as it follows the ASGI spec. In general, ASGI middlewares are classes that expect to receive an ASGI app as the first argu... - https://man.mtool.work/fastapi/0.115/advanced/middleware/
- Path Operationの高度な設定 8225
- Path Operationの高度な設定 OpenAPI operationId 注意 あなたがOpenAPIの「エキスパート」でなければ、これは必要ないかもしれません。 path operation で operation_id パラメータを利用することで、OpenAPIの operationId を設定できます。 operation_id は
...( item : Item ): """ Create an item with all the information: - **name**: each item must have a name - **description**: a long description - **price**: required - **tax**: if the item doesn't have tax, you can omit this - **tags**: a set of unique t... - https://man.mtool.work/fastapi/0.115/advanced/path-operation-advanced-configurat...
- Custom Docs UI Static Assets (Self-Hosting) 7585
- Custom Docs UI Static Assets (Self-Hosting) Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . The API docs use Swagger UI and ReDoc , and each of those need some Jav
...the static files Start your application and go to http://127.0.0.1:8000/static/redoc.standalone.js . You should see a very long JavaScript file for ReDoc . It could start with something like: /*! * ReDoc - OpenAPI/Swagger-generated API Reference Docu... - https://man.mtool.work/fastapi/0.115/how-to/custom-docs-ui-assets/
- Simple OAuth2 with Password and Bearer 7366
- 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
...ys that the client can send another form field " scope ". The form field name is scope (in singular), but it is actually a long string with "scopes" separated by spaces. Each "scope" is just a string (without spaces). They are normally used to declar...se the form data Tip The instance of the dependency class OAuth2PasswordRequestForm won't have an attribute scope with the long string separated by spaces, instead, it will have a scopes attribute with the actual list of strings for each scope sent.... - https://man.mtool.work/fastapi/0.115/tutorial/security/simple-oauth2/
PREV
1
NEXT