Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 71 for says (0.12 sec)

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

    For example, let's say you have 4 API endpoints (*path operations*):
    
    * `/items/public/`
    * `/items/private/`
    * `/users/{user_id}/activate`
    * `/items/pro/`
    
    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/tutorial/query-params-str-validations.md

        ```
    
    But know that this is deprecated and it should be updated to use the new parameter `pattern`. 🤓
    
    ## Default values
    
    You can, of course, use default values other than `None`.
    
    Let's say that you want to declare the `q` query parameter to have a `min_length` of `3`, and to have a default value of `"fixedquery"`:
    
    === "Python 3.9+"
    
        ```Python hl_lines="9"
    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)
  3. docs/en/docs/advanced/custom-response.md

    You can create your own custom response class, inheriting from `Response` and using it.
    
    For example, let's say that you want to use <a href="https://github.com/ijl/orjson" class="external-link" target="_blank">`orjson`</a>, but with some custom settings not used in the included `ORJSONResponse` class.
    
    Let's say you want it to return indented and formatted JSON, so you want to use the orjson option `orjson.OPT_INDENT_2`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  4. docs_src/python_types/tutorial009c.py

    from typing import Optional
    
    
    def say_hi(name: Optional[str]):
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 89 bytes
    - Viewed (0)
  5. docs_src/python_types/tutorial013.py

    from typing_extensions import Annotated
    
    
    def say_hello(name: Annotated[str, "this is just metadata"]) -> str:
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 138 bytes
    - Viewed (0)
  6. docs_src/python_types/tutorial009b.py

    from typing import Union
    
    
    def say_hi(name: Union[str, None] = None):
        if name is not None:
            print(f"Hey {name}!")
        else:
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 164 bytes
    - Viewed (0)
  7. docs/uk/docs/index.md

    {% endif %}
    
    <!-- /sponsors -->
    
    <a href="https://fastapi.tiangolo.com/fastapi-people/#sponsors" class="external-link" target="_blank">Other sponsors</a>
    
    ## Враження
    
    "_[...] I'm using **FastAPI** a ton these days. [...] I'm actually planning to use it for all of my team's **ML services at Microsoft**. Some of them are getting integrated into the core **Windows** product and some **Office** products._"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 24.2K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/response-directly.md

    Now, let's see how you could use that to return a custom response.
    
    Let's say that you want to return an <a href="https://en.wikipedia.org/wiki/XML" class="external-link" target="_blank">XML</a> response.
    
    You could put your XML content in a string, put it in a `Response`, and return it:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 29 14:02:58 GMT 2020
    - 3K bytes
    - Viewed (0)
  9. README.md

    <!-- /sponsors -->
    
    <a href="https://fastapi.tiangolo.com/fastapi-people/#sponsors" class="external-link" target="_blank">Other sponsors</a>
    
    ## Opinions
    
    "_[...] I'm using **FastAPI** a ton these days. [...] I'm actually planning to use it for all of my team's **ML services at Microsoft**. Some of them are getting integrated into the core **Windows** product and some **Office** products._"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  10. docs/fr/docs/advanced/path-operation-advanced-configuration.md

    Ainsi, vous pouvez ajouter des données supplémentaires au schéma généré automatiquement.
    
    Par exemple, vous pouvez décider de lire et de valider la requête avec votre propre code, sans utiliser les fonctionnalités automatiques de validation proposée par Pydantic, mais vous pouvez toujours définir la requête dans le schéma OpenAPI.
    
    Vous pouvez le faire avec `openapi_extra` :
    
    ```Python hl_lines="20-37 39-40"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8K bytes
    - Viewed (0)
Back to top