Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for addons (0.25 sec)

  1. docs/en/docs/how-to/extending-openapi.md

    ```Python hl_lines="2  15-21"
    {!../../../docs_src/extending_openapi/tutorial001.py!}
    ```
    
    ### Modify the OpenAPI schema
    
    Now you can add the ReDoc extension, adding a custom `x-logo` to the `info` "object" in the OpenAPI schema:
    
    ```Python hl_lines="22-24"
    {!../../../docs_src/extending_openapi/tutorial001.py!}
    ```
    
    ### Cache the OpenAPI schema
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Aug 19 19:54:04 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  2. docs/en/data/external_links.yml

        title: Write a Python data layer with Azure Cosmos DB and FastAPI
      - author: Donny Peeters
        author_link: https://github.com/Donnype
        link: https://bitestreams.com/blog/fastapi-sqlalchemy/
        title: 10 Tips for adding SQLAlchemy to FastAPI
      - author: Jessica Temporal
        author_link: https://jtemporal.com/socials
        link: https://jtemporal.com/tips-on-migrating-from-flask-to-fastapi-and-vice-versa/
    Others
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 21 20:57:27 GMT 2024
    - 21.3K bytes
    - Viewed (2)
  3. docs/fr/docs/tutorial/first-steps.md

    * `GET` : pour lire de la donnée.
    * `PUT` : pour mettre à jour de la donnée.
    * `DELETE` : pour supprimer de la donnée.
    
    Donc, dans **OpenAPI**, chaque méthode HTTP est appelée une "opération".
    
    Nous allons donc aussi appeler ces dernières des "**opérations**".
    
    
    #### Définir un *décorateur d'opération de chemin*
    
    ```Python hl_lines="6"
    {!../../../docs_src/first_steps/tutorial001.py!}
    ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Sep 27 20:52:31 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/security/oauth2-scopes.md

    And we return the scopes as part of the JWT token.
    
    !!! danger
        For simplicity, here we are just adding the scopes received directly to the token.
    
        But in your application, for security, you should make sure you only add the scopes that the user is actually able to have, or the ones you have predefined.
    
    === "Python 3.10+"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  5. docs/en/docs/how-to/sql-databases-peewee.md

    ```
    
    !!! tip
        Here we are creating the models with an `id`.
    
        We didn't explicitly specify an `id` attribute in the Peewee models, but Peewee adds one automatically.
    
        We are also adding the magic `owner_id` attribute to `Item`.
    
    ### Create a `PeeweeGetterDict` for the Pydantic *models* / schemas
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/path-operation-advanced-configuration.md

    If you want to use your APIs' function names as `operationId`s, you can iterate over all of them and override each *path operation's* `operation_id` using their `APIRoute.name`.
    
    You should do it after adding all your *path operations*.
    
    ```Python hl_lines="2  12-21  24"
    {!../../../docs_src/path_operation_advanced_configuration/tutorial002.py!}
    ```
    
    !!! tip
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  7. docs/en/docs/deployment/docker.md

    ```Dockerfile
    COPY ./requirements.txt /code/requirements.txt
    ```
    
    Docker and other tools **build** these container images **incrementally**, adding **one layer on top of the other**, starting from the top of the `Dockerfile` and adding any files created by each of the instructions of the `Dockerfile`.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 34.3K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/query-params.md

    ```
    
    Here the query parameter `needy` is a required query parameter of type `str`.
    
    If you open in your browser a URL like:
    
    ```
    http://127.0.0.1:8000/items/foo-item
    ```
    
    ...without adding the required parameter `needy`, you will see an error like:
    
    ```JSON
    {
      "detail": [
        {
          "type": "missing",
          "loc": [
            "query",
            "needy"
          ],
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Oct 20 09:08:42 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  9. docs/en/docs/advanced/openapi-callbacks.md

    ## The normal **FastAPI** app
    
    Let's first see how the normal API app would look like before adding the callback.
    
    It will have a *path operation* that will receive an `Invoice` body, and a query parameter `callback_url` that will contain the URL for the callback.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/extra-models.md

    So, we get a Pydantic model from the data in another Pydantic model.
    
    #### Unwrapping a `dict` and extra keywords
    
    And then adding the extra keyword argument `hashed_password=hashed_password`, like in:
    
    ```Python
    UserInDB(**user_in.dict(), hashed_password=hashed_password)
    ```
    
    ...ends up being like:
    
    ```Python
    UserInDB(
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (1)
Back to top