Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Mitake (0.2 sec)

  1. docs/en/docs/tutorial/dependencies/index.md

    But this way we can focus on how the **Dependency Injection** system works.
    
    ### Create a dependency, or "dependable"
    
    Let's first focus on the dependency.
    
    It is just a function that can take all the same parameters that a *path operation function* can take:
    
    === "Python 3.10+"
    
        ```Python hl_lines="8-9"
        {!> ../../../docs_src/dependencies/tutorial001_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="8-11"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  2. docs/en/docs/index.md

    You will see the JSON response as:
    
    ```JSON
    {"item_id": 5, "q": "somequery"}
    ```
    
    You already created an API that:
    
    * Receives HTTP requests in the _paths_ `/` and `/items/{item_id}`.
    * Both _paths_ take `GET` operations (also known as HTTP _methods_).
    * The _path_ `/items/{item_id}` has a _path parameter_ `item_id` that should be an `int`.
    * The _path_ `/items/{item_id}` has an optional `str` _query parameter_ `q`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 19.8K bytes
    - Viewed (0)
Back to top