- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for Patrick (0.2 sec)
-
docs_src/graphql/tutorial001.py
from strawberry.asgi import GraphQL @strawberry.type class User: name: str age: int @strawberry.type class Query: @strawberry.field def user(self) -> User: return User(name="Patrick", age=100) schema = strawberry.Schema(query=Query) graphql_app = GraphQL(schema) app = FastAPI() app.add_route("/graphql", graphql_app)
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Oct 03 18:00:28 GMT 2021 - 446 bytes - Viewed (0) -
docs/en/data/external_links.yml
author_link: https://www.linkedin.com/in/navule/ link: https://www.tutlinks.com/deploy-fastapi-on-ubuntu-gunicorn-caddy-2/ title: Deploy FastAPI on Ubuntu and Serve using Caddy 2 Web Server - author: Patrick Ladon author_link: https://dev.to/factorlive link: https://dev.to/factorlive/python-facebook-messenger-webhook-with-fastapi-on-glitch-4n90 title: Python Facebook messenger webhook with FastAPI on Glitch
Others - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Mar 21 20:57:27 GMT 2024 - 21.3K bytes - Viewed (2) -
docs/en/docs/advanced/dataclasses.md
!!! info Keep in mind that dataclasses can't do everything Pydantic models can do. So, you might still need to use Pydantic models. But if you have a bunch of dataclasses laying around, this is a nice trick to use them to power a web API using FastAPI. 🤓 ## Dataclasses in `response_model` You can also use `dataclasses` in the `response_model` parameter: ```Python hl_lines="1 7-13 19"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 4.1K bytes - Viewed (0) -
docs/de/docs/tutorial/path-params-numeric-validations.md
``` ## Sortieren Sie die Parameter wie Sie möchten: Tricks !!! tip "Tipp" Wenn Sie `Annotated` verwenden, ist das folgende nicht so wichtig / nicht notwendig. Hier ein **kleiner Trick**, der nützlich sein kann, aber Sie werden ihn nicht oft brauchen. Wenn Sie eines der folgenden Dinge tun möchten: * den `q`-Parameter ohne `Query` oder irgendeinem Defaultwert deklarieren
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 17:59:29 GMT 2024 - 10.2K bytes - Viewed (0) -
docs/de/docs/tutorial/dependencies/index.md
Das ist schlicht Standard-Python, es wird als „Typalias“ bezeichnet und ist eigentlich nicht **FastAPI**-spezifisch. Da **FastAPI** jedoch auf Standard-Python, einschließlich `Annotated`, basiert, können Sie diesen Trick in Ihrem Code verwenden. 😎
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 18:01:10 GMT 2024 - 13.1K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/index.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 11.6K bytes - Viewed (0) -
fastapi/applications.py
the OpenAPI version. But some tools, even though they might be compatible with OpenAPI 3.1.0, might not recognize it as a valid. So you could override this value to trick those tools into using the generated OpenAPI. Have in mind that this is a hack. But if you avoid using features added in OpenAPI 3.1.0, it might work for your use case.
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 02:48:51 GMT 2024 - 172.2K bytes - Viewed (0) -
docs/en/docs/tutorial/path-params-numeric-validations.md
``` ## Order the parameters as you need, tricks !!! tip This is probably not as important or necessary if you use `Annotated`. Here's a **small trick** that can be handy, but you won't need it often. If you want to: * declare the `q` query parameter without a `Query` nor any default value * declare the path parameter `item_id` using `Path`
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 16:31:18 GMT 2024 - 9.1K bytes - Viewed (0) -
docs/de/docs/advanced/dataclasses.md
Daher müssen Sie möglicherweise weiterhin Pydantic-Modelle verwenden. Wenn Sie jedoch eine Menge Datenklassen herumliegen haben, ist dies ein guter Trick, um sie für eine Web-API mithilfe von FastAPI zu verwenden. 🤓 ## Datenklassen als `response_model` Sie können `dataclasses` auch im Parameter `response_model` verwenden: ```Python hl_lines="1 7-13 19"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:18:23 GMT 2024 - 4.6K bytes - Viewed (0) -
docs/en/docs/advanced/path-operation-advanced-configuration.md
Nevertheless, we can declare the expected schema for the request body. ### Custom OpenAPI content type Using this same trick, you could use a Pydantic model to define the JSON Schema that is then included in the custom OpenAPI schema section for the *path operation*. And you could do this even if the data type in the request is not JSON.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 7.7K bytes - Viewed (0)