Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 45 for light (0.04 sec)

  1. docs/en/docs/tutorial/path-operation-configuration.md

    They will be added to the OpenAPI schema and used by the automatic documentation interfaces:
    
    <img src="/img/tutorial/path-operation-configuration/image01.png">
    
    ### Tags with Enums
    
    If you have a big application, you might end up accumulating **several tags**, and you would want to make sure you always use the **same tag** for related *path operations*.
    
    In these cases, it could make sense to store the tags in an `Enum`.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 17 05:59:11 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/dependencies/sub-dependencies.md

    Just functions that look the same as the *path operation functions*.
    
    But still, it is very powerful, and allows you to declare arbitrarily deeply nested dependency "graphs" (trees).
    
    !!! tip
        All this might not seem as useful with these simple examples.
    
        But you will see how useful it is in the chapters about **security**.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 23:43:13 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/security/http-basic-auth.md

    At that point, by noticing that the server took some microseconds longer to send the "Incorrect username or password" response, the attackers will know that they got _something_ right, some of the initial letters were right.
    
    And then they can try again knowing that it's probably something more similar to `stanleyjobsox` than to `johndoe`.
    
    #### A "professional" attack
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jan 11 14:33:05 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/index.md

    The **Advanced User Guide**, builds on this, uses the same concepts, and teaches you some extra features.
    
    But you should first read the **Tutorial - User Guide** (what you are reading right now).
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu May 02 22:37:31 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/advanced-dependencies.md

        !!! tip
            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="20"
        {!> ../../../docs_src/dependencies/tutorial011.py!}
        ```
    
    !!! tip
        All this might seem contrived. And it might not be very clear how is it useful yet.
    
        These examples are intentionally simple, but show how it all works.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 17 05:59:11 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. docs/en/docs/how-to/nosql-databases-couchbase.md

    The analogy in **MongoDB** would be a "collection".
    
    In the code, a `Bucket` represents the main entrypoint of communication with the database.
    
    This utility function will:
    
    * Connect to a **Couchbase** cluster (that might be a single machine).
        * Set defaults for timeouts.
    * Authenticate in the cluster.
    * Get a `Bucket` instance.
        * Set defaults for timeouts.
    * Return it.
    
    ```Python hl_lines="12-21"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 23:43:13 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/additional-responses.md

    # Additional Responses in OpenAPI
    
    !!! warning
        This is a rather advanced topic.
    
        If you are starting with **FastAPI**, you might not need this.
    
    You can declare additional responses, with additional status codes, media types, descriptions, etc.
    
    Those additional responses will be included in the OpenAPI schema, so they will also appear in the API docs.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 23:43:13 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/security/get-current-user.md

        ```
    
    Notice that we declare the type of `current_user` as the Pydantic model `User`.
    
    This will help us inside of the function with all the completion and type checks.
    
    !!! tip
        You might remember that request bodies are also declared with Pydantic models.
    
        Here **FastAPI** won't get confused because you are using `Depends`.
    
    !!! check
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jan 11 16:31:18 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. docs/en/docs/how-to/conditional-openapi.md

    * Implement and use well-known cryptographic tools, like Passlib and JWT tokens, etc.
    * Add more granular permission controls with OAuth2 scopes where needed.
    * ...etc.
    
    Nevertheless, you might have a very specific use case where you really need to disable the API docs for some environment (e.g. for production) or depending on configurations from environment variables.
    
    ## Conditional OpenAPI from settings and env vars
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Aug 19 19:54:04 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/openapi-webhooks.md

    This can make it a lot easier for your users to **implement their APIs** to receive your **webhook** requests, they might even be able to autogenerate some of their own API code.
    
    !!! info
        Webhooks are available in OpenAPI 3.1.0 and above, supported by FastAPI `0.99.0` and above.
    
    ## An app with webhooks
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu May 02 22:37:31 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top