Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 77 for because (0.21 sec)

  1. docs/en/docs/advanced/sub-applications.md

    <img src="/img/tutorial/sub-applications/image02.png">
    
    If you try interacting with any of the two user interfaces, they will work correctly, because the browser will be able to talk to each specific app or sub-app.
    
    ### Technical Details: `root_path`
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/security/first-steps.md

    
    ## Run it
    
    !!! info
        First install <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>.
    
        E.g. `pip install python-multipart`.
    
        This is because **OAuth2** uses "form data" for sending the `username` and `password`.
    
    Run the example with:
    
    <div class="termy">
    
    ```console
    $ uvicorn main:app --reload
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  3. docs/en/mkdocs.maybe-insiders.yml

    # Define this here and not in the main mkdocs.yml file because that one is auto
    # updated and written, and the script would remove the env var
    INHERIT: !ENV [INSIDERS_FILE, '../en/mkdocs.no-insiders.yml']
    markdown_extensions:
      pymdownx.highlight:
    Others
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 16:23:02 GMT 2023
    - 285 bytes
    - Viewed (0)
  4. docs/en/docs/advanced/events.md

    Let's imagine that loading the model can **take quite some time**, because it has to read a lot of **data from disk**. So you don't want to do it for every request.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  5. docs/en/docs/how-to/separate-openapi-schemas.md

    The way to describe this in OpenAPI, is to mark that field as **required**, because it will always be there.
    
    Because of that, the JSON Schema for a model can be different depending on if it's used for **input or output**:
    
    * for **input** the `description` will **not be required**
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  6. docs/en/docs/deployment/concepts.md

    But if your connection to the server is lost, the **running process** will probably die.
    
    And if the server is restarted (for example after updates, or migrations from the cloud provider) you probably **won't notice it**. And because of that, you won't even know that you have to restart the process manually. So, your API will just stay dead. 😱
    
    ### Run Automatically on Startup
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/bigger-applications.md

    ### Add some custom `tags`, `responses`, and `dependencies`
    
    We are not adding the prefix `/items` nor the `tags=["items"]` to each *path operation* because we added them to the `APIRouter`.
    
    But we can still add _more_ `tags` that will be applied to a specific *path operation*, and also some extra `responses` specific to that *path operation*:
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/cookie-params.md

        But remember that when you import `Query`, `Path`, `Cookie` and others from `fastapi`, those are actually functions that return special classes.
    
    !!! info
        To declare cookies, you need to use `Cookie`, because otherwise the parameters would be interpreted as query parameters.
    
    ## Recap
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/response-model.md

    ```Python hl_lines="8  10-11"
    {!> ../../../docs_src/response_model/tutorial003_02.py!}
    ```
    
    This simple case is handled automatically by FastAPI because the return type annotation is the class (or a subclass) of `Response`.
    
    And tools will also be happy because both `RedirectResponse` and `JSONResponse` are subclasses of `Response`, so the type annotation is correct.
    
    ### Annotate a Response Subclass
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/path-params.md

    ## Standards-based benefits, alternative documentation
    
    And because the generated schema is from the <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.1.0.md" class="external-link" target="_blank">OpenAPI</a> standard, there are many compatible tools.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.1K bytes
    - Viewed (0)
Back to top