Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for declarations (0.19 sec)

  1. docs/en/docs/features.md

    **FastAPI** gives you the following:
    
    ### Based on open standards
    
    * <a href="https://github.com/OAI/OpenAPI-Specification" class="external-link" target="_blank"><strong>OpenAPI</strong></a> for API creation, including declarations of <abbr title="also known as: endpoints, routes">path</abbr> <abbr title="also known as HTTP methods, as POST, GET, PUT, DELETE">operations</abbr>, parameters, body requests, security, etc.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  2. docs/en/docs/alternatives.md

        This actually inspired updating parts of Pydantic, to support the same validation declaration style (all this functionality is now already available in Pydantic).
    
    ### <a href="https://www.hug.rest/" class="external-link" target="_blank">Hug</a>
    
    Hug was one of the first frameworks to implement the declaration of API parameter types using Python type hints. This was a great idea that inspired other tools to do the same.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  3. docs/en/docs/python-types.md

    **FastAPI** takes advantage of these type hints to do several things.
    
    With **FastAPI** you declare parameters with type hints and you get:
    
    * **Editor support**.
    * **Type checks**.
    
    ...and **FastAPI** uses the same declarations to:
    
    * **Define requirements**: from request path parameters, query parameters, headers, bodies, dependencies, etc.
    * **Convert data**: from the request to the required type.
    * **Validate data**: coming from each request:
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/extra-models.md

    We could do better.
    
    We can declare a `UserBase` model that serves as a base for our other models. And then we can make subclasses of that model that inherit its attributes (type declarations, validation, etc).
    
    All the data conversion, validation, documentation, etc. will still work as normally.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (1)
  5. docs/en/docs/tutorial/dependencies/index.md

    !!! note
        If you don't know, check the [Async: *"In a hurry?"*](../../async.md#in-a-hurry){.internal-link target=_blank} section about `async` and `await` in the docs.
    
    ## Integrated with OpenAPI
    
    All the request declarations, validations and requirements of your dependencies (and sub-dependencies) will be integrated in the same OpenAPI schema.
    
    So, the interactive docs will have all the information from these dependencies too:
    
    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)
  6. docs/fr/docs/tutorial/path-params.md

    ```
    
    !!! check "vérifier"
        Comme vous l'avez remarqué, la valeur reçue par la fonction (et renvoyée ensuite) est `3`,
        en tant qu'entier (`int`) Python, pas la chaîne de caractères (`string`) `"3"`.
    
        Grâce aux déclarations de types, **FastAPI** fournit du
        <abbr title="conversion de la chaîne de caractères venant de la requête HTTP en données Python">"parsing"</abbr> automatique.
    
    ## Validation de données
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/response-model.md

    FastAPI will use this `response_model` to do all the data documentation, validation, etc. and also to **convert and filter the output data** to its type declaration.
    
    !!! tip
        If you have strict type checks in your editor, mypy, etc, you can declare the function return type as `Any`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
  8. docs/em/docs/python-types.md

    ## 🆎 🔑 **FastAPI**
    
    **FastAPI** ✊ 📈 👫 🆎 🔑 📚 👜.
    
    ⏮️ **FastAPI** 👆 📣 🔢 ⏮️ 🆎 🔑 &amp; 👆 🤚:
    
    * **👨‍🎨 🐕‍🦺**.
    * **🆎 ✅**.
    
    ...and **FastAPI** uses the same declarations :
    
    * **🔬 📄**: ⚪️➡️ 📨 ➡ 🔢, 🔢 🔢, 🎚, 💪, 🔗, ♒️.
    * **🗜 💽**: ⚪️➡️ 📨 🚚 🆎.
    * **✔ 💽**: 👟 ⚪️➡️ 🔠 📨:
        * 🏭 **🏧 ❌** 📨 👩‍💻 🕐❔ 📊 ❌.
    * **📄** 🛠️ ⚙️ 🗄:
        * ❔ ⤴️ ⚙️ 🏧 🎓 🧾 👩‍💻 🔢.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  9. docs/en/docs/release-notes.md

        * Add support for type annotations using `Optional` as in `param: Optional[str] = None`. New documentation: [Optional type declarations](https://fastapi.tiangolo.com/tutorial/query-params/#optional-type-declarations).
        * PR [#278](https://github.com/tiangolo/fastapi/pull/278).
    
    ## 0.26.0
    
    * Separate error handling for validation errors.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
  10. docs/es/docs/index.md

    ## Mejora al ejemplo
    
    Ahora modifica el archivo `main.py` para recibir un <abbr title="cuerpo del mensaje HTTP">body</abbr> del `PUT` request.
    
    Declara el body usando las declaraciones de tipo estándares de Python gracias a Pydantic.
    
    ```Python hl_lines="2  7-10  23-25"
    from fastapi import FastAPI
    from pydantic import BaseModel
    from typing import Union
    
    app = FastAPI()
    
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 19K bytes
    - Viewed (0)
Back to top