Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for Haddad (0.17 sec)

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

        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="3  17"
        {!> ../../../docs_src/path_operation_configuration/tutorial001.py!}
        ```
    
    That status code will be used in the response and will be added to the OpenAPI schema.
    
    !!! note "Technical Details"
        You could also use `from starlette import status`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/dependencies/index.md

    * An optional query parameter `limit` that is an `int`, and by default is `100`.
    
    And then it just returns a `dict` containing those values.
    
    !!! info
        FastAPI added support for `Annotated` (and started recommending it) in version 0.95.0.
    
        If you have an older version, you would get errors when trying to use `Annotated`.
    
    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)
  3. docs/en/docs/tutorial/query-params-str-validations.md

        It will already be installed with FastAPI.
    
        ```Python hl_lines="3-4"
        {!> ../../../docs_src/query_params_str_validations/tutorial002_an.py!}
        ```
    
    !!! info
        FastAPI added support for `Annotated` (and started recommending it) in version 0.95.0.
    
        If you have an older version, you would get errors when trying to use `Annotated`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 25.7K bytes
    - Viewed (0)
  4. fastapi/applications.py

                    It will be added to the generated OpenAPI (e.g. visible at `/docs`).
                    """
                ),
            ] = None,
            deprecated: Annotated[
                Optional[bool],
                Doc(
                    """
                    Mark this *path operation* as deprecated.
    
                    It will be added to the generated OpenAPI (e.g. visible at `/docs`).
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  5. docs_src/path_operation_advanced_configuration/tutorial002.py

    
    def use_route_names_as_operation_ids(app: FastAPI) -> None:
        """
        Simplify operation IDs so that generated API clients have simpler function
        names.
    
        Should be called only after all routes have been added.
        """
        for route in app.routes:
            if isinstance(route, APIRoute):
                route.operation_id = route.name  # in this case, 'read_items'
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 572 bytes
    - Viewed (0)
  6. docs/en/docs/advanced/response-headers.md

        And as the `Response` can be used frequently to set headers and cookies, **FastAPI** also provides it at `fastapi.Response`.
    
    ## Custom Headers
    
    Keep in mind that custom proprietary headers can be added <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers" class="external-link" target="_blank">using the 'X-' prefix</a>.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  7. .github/DISCUSSION_TEMPLATE/questions.yml

      - type: checkboxes
        id: checks
        attributes:
          label: First Check
          description: Please confirm and check all the following options.
          options:
            - label: I added a very descriptive title here.
              required: true
            - label: I used the GitHub search to find a similar question and didn't find it.
              required: true
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Aug 03 15:59:41 GMT 2023
    - 5.8K bytes
    - Viewed (1)
  8. docs/en/docs/tutorial/security/simple-oauth2.md

    !!! info
        The `OAuth2PasswordRequestForm` is not a special class for **FastAPI** as is `OAuth2PasswordBearer`.
    
        `OAuth2PasswordBearer` makes **FastAPI** know that it is a security scheme. So it is added that way to OpenAPI.
    
        But `OAuth2PasswordRequestForm` is just a class dependency that you could have written yourself, or you could have declared `Form` parameters directly.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/schema-extra-example.md

    Before OpenAPI 3.1.0, OpenAPI used an older and modified version of **JSON Schema**.
    
    JSON Schema didn't have `examples`, so OpenAPI added it's own `example` field to its own modified version.
    
    OpenAPI also added `example` and `examples` fields to other parts of the specification:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/events.md

    ```
    
    Here, the `shutdown` event handler function will write a text line `"Application shutdown"` to a file `log.txt`.
    
    !!! info
        In the `open()` function, the `mode="a"` means "append", so, the line will be added after whatever is on that file, without overwriting the previous contents.
    
    !!! tip
        Notice that in this case we are using a standard Python `open()` function that interacts with a file.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.8K bytes
    - Viewed (0)
Back to top