コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 6 of about 6 for document (0.007 sec.)
WebSocket 13106
WebSocket FastAPI で WebSocket が使用できます。 WebSockets のインストール まず WebSockets のインストールが必要です。 $ pip install websockets ---> 100% WebSocket クライアント 本番環境 本番環境では、React、Vue.js、Angularなどの最新のフレーム ... essages'> </ul> <script> var ws = new WebSocket("ws://localhost:8000/ws"); ws.onmessage = function(event) { var messages = document.getElementById('messages') var message = document.createElement('li') var content = document.createTextNode(event.data) me ... ssage.appendChild(content) messages.appendChild(message) }; function sendMessage(event) { var input = document.getElementById("messageText") ws.send(input.value) input.value = '' event.preventDefault() } </script> </body> </html> """ ... essages'> </ul> <script> var ws = new WebSocket("ws://localhost:8000/ws"); ws.onmessage = function(event) { var messages = document.getElementById('messages') var message = document.createElement('li') var content = document.createTextNode(event.data) me ...
https://man.mtool.work/fastapi/0.115/advanced/websockets/
OpenAPI Callbacks 8956
OpenAPI Callbacks Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You could create an API with a path operation that could trigger a request to an external API cre ... , sending a request to an external API (that was probably created by the same developer). In this case, you could want to document how that external API should look like. What path operation it should have, what body it should expect, what response it s ... he callbacks=invoices_callback_router.routes as an argument to the path operation decorator . We'll see what that is next. Documenting the callback The actual callback code will depend heavily on your own API app. And it will probably vary a lot from one ... data that your API is going to send in the request body of the callback, etc. So, what we will do next is add the code to document how that external API should look like to receive the callback from your API . That documentation will show up in the Swag ...
https://man.mtool.work/fastapi/0.115/advanced/openapi-callbacks/
Development - Contributing 8792
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 ... ">[INFO]</span> Start watching changes <span style="color: green;">[INFO]</span> Start detecting changes It will serve the documentation on http://127.0.0.1:8008 . That way, you can edit the documentation/source files and see the changes live. Tip Altern ... completion installed in /home/user/.bashrc. Completion will take effect once you restart the terminal. Docs Structure The documentation uses MkDocs . And there are extra tools/scripts in place to handle translations in ./scripts/docs.py . Tip You don't ... need to see the code in ./scripts/docs.py , you just use it in the command line. All the documentation is in Markdown format in the directory ./docs/en/ . Many of the tutorials have blocks of code. In most of the cases, ...
https://man.mtool.work/fastapi/0.115/contributing/
Configure Swagger UI 8170
Configure Swagger UI Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You can configure some extra Swagger UI parameters . To configure them, pass the swagger_ui_pa ... 0; padding: 0; }} </style> </head> <body> <noscript> ReDoc requires Javascript to function. Please enable it to browse the documentation. </noscript> <redoc spec-url=" { openapi_url } "></redoc> <script src=" { redoc_js_url } "> </script> </body> </html> ... lse { oauth2.callback({auth: oauth2.auth, token: qp, isValid: isValid, redirectUrl: redirectUrl}); } window.close(); } if (document.readyState !== 'loading') { run(); } else { document.addEventListener('DOMContentLoaded', function () { run(); }); } </scr ...
https://man.mtool.work/fastapi/0.115/how-to/configure-swagger-ui/
OAuth2 scopes 7878
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 ... But by using Security instead of Depends , FastAPI will know that it can declare security scopes, use them internally, and document the API with OpenAPI. But when you import Query , Path , Depends , Security and others from fastapi , those are actually f ...
https://man.mtool.work/fastapi/0.115/advanced/security/oauth2-scopes/
SQL (Relational) Databases 7878
SQL (Relational) Databases Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . FastAPI doesn't require you to use a SQL (relational) database. But you can use any data ... n http://127.0.0.1:8000 (Press CTRL+C to quit) Then go to the /docs UI, you will see that FastAPI is using these models to document the API, and it will use them to serialize and validate the data too. Update the App with Multiple Models Now let's refact ...
https://man.mtool.work/fastapi/0.115/tutorial/sql-databases/
PREV 1 NEXT