Results of 1 - 10 of about 31 for cases (0.003 sec.)
- Repository Management Tasks 13475
- Repository Management Tasks These are the tasks that can be performed to manage the FastAPI repository by team members . Tip This section is useful only to a handful of people, team members with permissions to manage the repository. You can
...me to try to do something. It's difficult to convey emotion in text, use emojis to help. ? In discussions and PRs, in many cases, people bring their frustration and show it without filter, in many cases exaggerating, complaining, being entitled, etc....but they considered it what should be supported by default. Many of these are actually features or refactors. But in some cases there's an actual bug. refactor : Refactors This is normally for changes to the internal code that don't change the behavi...PRs For Spanish, as I'm a native speaker and it's a language close to me, I will give it a final review myself and in most cases tweak the PR a bit before merging it. For the other languages, confirm that: The title is correct following the instructio... - https://man.mtool.work/fastapi/0.115/management-tasks/
- Response - Change Status Code 11534
- Response - Change Status Code Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You probably read before that you can set a default Response Status Code . But in som
...e cases you need to return a different status code than the default. Use case For example, imagine that you want to return an HTTP..."CREATED" 201 . But you still want to be able to filter and convert the data you return with a response_model . For those cases, you can use a Response parameter. Use a Response parameter You can declare a parameter of type Response in your path oper... - https://man.mtool.work/fastapi/0.115/advanced/response-change-status-code/
- Custom Request and APIRoute class 10143
- Custom Request and APIRoute class Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . In some cases, you may want to override the logic used by the Request and APIRout
...tion. Danger This is an "advanced" feature. If you are just starting with FastAPI you might want to skip this section. Use cases Some use cases include: Converting non-JSON request bodies to JSON (e.g. msgpack ). Decompressing gzip-compressed request... - https://man.mtool.work/fastapi/0.115/how-to/custom-request-and-route/
- How To - Recipes 10143
- How To - Recipes Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . Here you will see different recipes or "how to" guides for several topics . Most of these ideas wo
...uld be more or less independent , and in most cases you should only need to study them if they apply directly to your project . If something seems interesting and useful to y... - https://man.mtool.work/fastapi/0.115/how-to/
- Deploy FastAPI on Cloud Providers 9868
- Deploy FastAPI on Cloud Providers Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You can use virtually any cloud provider to deploy your FastAPI application. In m
...ost of the cases, the main cloud providers have guides to deploy FastAPI with them. Cloud Providers - Sponsors Some cloud providers ✨ spons... - https://man.mtool.work/fastapi/0.115/deployment/cloud/
- Separate OpenAPI Schemas for Input and Output or Not 9868
- Separate OpenAPI Schemas for Input and Output or Not Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . When using Pydantic v2 , the generated OpenAPI is a bit more e
...xact and correct than before. ? In fact, in some cases, it will even have two JSON Schemas in OpenAPI for the same Pydantic model, for input and output, depending on if they hav...API don't have to check if the value exists or not, they can assume the field will always be there , but just that in some cases it will have the default value of None . The way to describe this in OpenAPI, is to mark that field as required , because...ill be more precise too, with a better developer experience and consistency. ? Do not Separate Schemas Now, there are some cases where you might want to have the same schema for input and output . Probably the main use case for this is if you already... - https://man.mtool.work/fastapi/0.115/how-to/separate-openapi-schemas/
- Behind a Proxy 9318
- 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
...that adds an extra path prefix that is not seen by your application. In these cases you can use root_path to configure your application. The root_path is a mechanism provided by the ASGI specification (that...FastAPI is built on, through Starlette). The root_path is used to handle these specific cases. And it's also used internally when mounting sub-applications. Proxy with a stripped path prefix Having a proxy with a str...path prefix Keep in mind that a proxy with stripped path prefix is only one of the ways to configure it. Probably in many cases the default will be that the proxy doesn't have a stripped path prefix. In a case like that (without a stripped path prefi... - https://man.mtool.work/fastapi/0.115/advanced/behind-a-proxy/
- Using the Request Directly 8476
- Using the Request Directly Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . Up to now, you have been declaring the parts of the request that you need with their typ
...(for example, the body with a Pydantic model) would still be validated, converted, annotated, etc. But there are specific cases where it's useful to get the Request object. Use the Request object directly Let's imagine you want to get the client's IP... - https://man.mtool.work/fastapi/0.115/advanced/using-request-directly/
- GraphQL 8476
- GraphQL 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 ASGI standard, it's very easy to integrate any GraphQL library also compatible w
...can combine normal FastAPI path operations with GraphQL on the same application. Tip GraphQL solves some very specific use cases. It has advantages and disadvantages when compared to common web APIs . Make sure you evaluate if the benefits for your us... - https://man.mtool.work/fastapi/0.115/how-to/graphql/
- OpenAPI Webhooks 8201
- 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
... - https://man.mtool.work/fastapi/0.115/advanced/openapi-webhooks/