Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 131 for could (0.14 sec)

  1. docs/en/docs/deployment/versions.md

    If you use a `requirements.txt` file you could specify the version with:
    
    ```txt
    fastapi==0.45.0
    ```
    
    that would mean that you would use exactly the version `0.45.0`.
    
    Or you could also pin it with:
    
    ```txt
    fastapi>=0.45.0,<0.46.0
    ```
    
    that would mean that you would use the versions `0.45.0` or above, but less than `0.46.0`, for example, a version `0.45.2` would still be accepted.
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Nov 05 20:50:37 GMT 2020
    - 3.3K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/generate-clients.md

    But for the generated client we could **modify** the OpenAPI operation IDs right before generating the clients, just to make those method names nicer and **cleaner**.
    
    We could download the OpenAPI JSON to a file `openapi.json` and then we could **remove that prefixed tag** with a script like this:
    
    === "Python"
    
        ```Python
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/testing.md

    │   └── main.py
    ```
    
    In the file `main.py` you have your **FastAPI** app:
    
    
    ```Python
    {!../../../docs_src/app_testing/main.py!}
    ```
    
    ### Testing file
    
    Then you could have a file `test_main.py` with your tests. It could live on the same Python package (the same directory with a `__init__.py` file):
    
    ``` hl_lines="5"
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/testing-database.md

    The only changes here are in the new testing file.
    
    Your normal dependency `get_db()` would return a database session.
    
    In the test, you could use a dependency override to return your *custom* database session instead of the one that would be used normally.
    
    In this example we'll create a temporary database only for the tests.
    
    ## File structure
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  5. tests/test_compat.py

        # For coverage
        # TODO: in theory this would allow declaring types that could be lists of bytes
        # to be read from files and other types, but I'm not even sure it's a good idea
        # to support it as a first class "feature"
        assert is_bytes_sequence_annotation(Union[List[str], List[bytes]])
    
    
    def test_is_uploadfile_sequence_annotation():
        # For coverage
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Sep 28 04:14:40 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  6. docs/en/docs/deployment/concepts.md

    This Manager Process would probably be the one listening on the **port** in the IP. And it would transmit all the communication to the worker processes.
    
    Those worker processes would be the ones running your application, they would perform the main computations to receive a **request** and return a **response**, and they would load anything you put in variables in RAM.
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/security/oauth2-jwt.md

    And then, you could give that JWT token to a user (or bot), and they could use it to perform those actions (drive the car, or edit the blog post) without even needing to have an account, just with the JWT token your API generated for that.
    
    Using these ideas, JWT can be used for way more sophisticated scenarios.
    
    In those cases, several of those entities could have the same ID, let's say `foo` (a user `foo`, a car `foo`, and a blog post `foo`).
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13K bytes
    - Viewed (0)
  8. docs/en/docs/how-to/graphql.md

    Depending on your use case, you might prefer to use a different library, but if you asked me, I would probably suggest you try **Strawberry**.
    
    Here's a small preview of how you could integrate Strawberry with FastAPI:
    
    ```Python hl_lines="3  22  25-26"
    {!../../../docs_src/graphql/tutorial001.py!}
    ```
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sat Aug 19 19:54:04 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/first-steps.md

    #### What is OpenAPI for
    
    The OpenAPI schema is what powers the two interactive documentation systems included.
    
    And there are dozens of alternatives, all based on OpenAPI. You could easily add any of those alternatives to your application built with **FastAPI**.
    
    You could also use it to generate code automatically, for clients that communicate with your API. For example, frontend, mobile or IoT applications.
    
    ## Recap, step by step
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  10. docs/en/docs/how-to/conditional-openapi.md

    Hiding the documentation just makes it more difficult to understand how to interact with your API, and could make it more difficult for you to debug it in production. It could be considered simply a form of <a href="https://en.wikipedia.org/wiki/Security_through_obscurity" class="external-link" target="_blank">Security through obscurity</a>.
    
    If you want to secure your API, there are several better things you can do, for example:
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sat Aug 19 19:54:04 GMT 2023
    - 2.3K bytes
    - Viewed (0)
Back to top