Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 87 for Reed (0.17 sec)

  1. docs/en/docs/how-to/sql-databases-peewee.md

    If you are developing an application with an older non-async framework, and can work with all its defaults, **it can be a great tool**.
    
    But if you need to change some of the defaults, support more than one predefined database, work with an async framework (like FastAPI), etc, you will need to add quite some complex extra code to override those defaults.
    
    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)
  2. docs/en/docs/advanced/response-headers.md

    And then you can set headers in that *temporal* response object.
    
    ```Python hl_lines="1  7-8"
    {!../../../docs_src/response_headers/tutorial002.py!}
    ```
    
    And then you can return any object you need, as you normally would (a `dict`, a database model, etc).
    
    And if you declared a `response_model`, it will still be used to filter and convert the object you returned.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/security/simple-oauth2.md

        If you need to enforce it, use `OAuth2PasswordRequestFormStrict` instead of `OAuth2PasswordRequestForm`.
    
    * An optional `client_id` (we don't need it for our example).
    * An optional `client_secret` (we don't need it for our example).
    
    !!! info
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  4. docs/en/docs/how-to/extending-openapi.md

    # Extending OpenAPI
    
    There are some cases where you might need to modify the generated OpenAPI schema.
    
    In this section you will see how.
    
    ## The normal process
    
    The normal (default) process, is as follows.
    
    A `FastAPI` application (instance) has an `.openapi()` method that is expected to return 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)
  5. docs/en/docs/advanced/security/oauth2-scopes.md

        You don't necessarily need OAuth2 scopes, and you can handle authentication and authorization however you want.
    
        But OAuth2 with scopes can be nicely integrated into your API (with OpenAPI) and your API docs.
    
        Nevertheless, you still enforce those scopes, or any other security/authorization requirement, however you need, in your code.
    
        In many cases, OAuth2 with scopes can be an overkill.
    
    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)
  6. docs/en/docs/advanced/async-tests.md

    function calls in your tests (e.g. when using <a href="https://stackoverflow.com/questions/41584243/runtimeerror-task-attached-to-a-different-loop" class="external-link" target="_blank">MongoDB's MotorClient</a>) Remember to instantiate objects that need an event loop only within async functions, e.g. an `'@app.on_event("startup")` callback....
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Jan 13 12:07:15 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/security/http-basic-auth.md

        ...
    ```
    
    But right at the moment Python compares the first `j` in `johndoe` to the first `s` in `stanleyjobson`, it will return `False`, because it already knows that those two strings are not the same, thinking that "there's no need to waste more computation comparing the rest of the letters". And your application will say "Incorrect username or password".
    
    But then the attackers try with username `stanleyjobsox` and password `love123`.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jan 11 14:33:05 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  8. docs/fr/docs/advanced/path-operation-advanced-configuration.md

    ```
    
    ## Description avancée de docstring
    
    Vous pouvez limiter le texte utilisé de la docstring d'une *fonction de chemin* qui sera affiché sur OpenAPI.
    
    L'ajout d'un `\f` (un caractère d'échappement "form feed") va permettre à **FastAPI** de tronquer la sortie utilisée pour OpenAPI à ce stade.
    
    Il n'apparaîtra pas dans la documentation, mais d'autres outils (tel que Sphinx) pourront utiliser le reste.
    
    ```Python hl_lines="19-29"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8K bytes
    - Viewed (0)
  9. fastapi/openapi/docs.py

        """
        return HTMLResponse(html)
    
    
    def get_swagger_ui_oauth2_redirect_html() -> HTMLResponse:
        """
        Generate the HTML response with the OAuth2 redirection for Swagger UI.
    
        You normally don't need to use or change this.
        """
        # copied from https://github.com/swagger-api/swagger-ui/blob/v4.14.0/dist/oauth2-redirect.html
        html = """
        <!doctype html>
        <html lang="en-US">
        <head>
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  10. fastapi/applications.py

                ),
            ] = None,
            deprecated: Annotated[
                Optional[bool],
                Doc(
                    """
                    Mark all *path operations* as deprecated. You probably don't need it,
                    but it's available.
    
                    It will be added to the generated OpenAPI (e.g. visible at `/docs`).
    
                    Read more about it in the
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
Back to top