Results of 1 - 4 of about 4 for frontend (0.006 sec.)
- Generate Clients 12316
- Generate Clients Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . As FastAPI is based on the OpenAPI specification, you get automatic compatibility with many tools,
...erators There are many tools to generate clients from OpenAPI . A common tool is OpenAPI Generator . If you are building a frontend , a very interesting alternative is openapi-ts . Client and SDK Generators - Sponsor There are also some company-backed Cl...re are also several other companies offering similar services that you can search and find online. ? Generate a TypeScript Frontend Client Let's start with a simple FastAPI application: Python 3.9+ from fastapi import FastAPI from pydantic import BaseMod...ient code . Generate a TypeScript Client Now that we have the app with the models, we can generate the client code for the frontend. Install openapi-ts You can install openapi-ts in your frontend code with: $ npm install @hey-api/openapi-ts --save-dev --... - https://man.mtool.work/fastapi/0.115/advanced/generate-clients/
- Behind a Proxy 9079
- Behind a Proxy Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . In some situations, you might need to use a proxy server like Traefik or Nginx with a configuration
...de the prefix /api/v1 . Up to here, everything would work as normally. But then, when you open the integrated docs UI (the frontend), it would expect to get the OpenAPI schema at /openapi.json , instead of /api/v1/openapi.json . So, the frontend (that ru...son and wouldn't be able to get the OpenAPI schema. Because we have a proxy with a path prefix of /api/v1 for our app, the frontend needs to fetch the OpenAPI schema at /api/v1/openapi.json . graph LR browser("Browser") proxy["Proxy on http://0.0.0.0:999... - https://man.mtool.work/fastapi/0.115/advanced/behind-a-proxy/
- Simple OAuth2 with Password and Bearer 7785
- 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
...ed like that. So user-name or email wouldn't work. But don't worry, you can show it as you wish to your final users in the frontend. And your database models can use any other names you want. But for the login path operation , we need to use these names... - https://man.mtool.work/fastapi/0.115/tutorial/security/simple-oauth2/
- SQL (Relational) Databases 7785
- 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
...use a database server like PostgreSQL . Tip There is an official project generator with FastAPI and PostgreSQL including a frontend and more tools: https://github.com/fastapi/full-stack-fastapi-template This is a very simple and short tutorial, if you wa... - https://man.mtool.work/fastapi/0.115/tutorial/sql-databases/
PREV
1
NEXT