Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 319 for Form (0.01 seconds)

  1. docs/de/docs/tutorial/request-form-models.md

    ## Die Dokumentation testen { #check-the-docs }
    
    Sie können dies in der Dokumentations-UI unter `/docs` testen:
    
    <div class="screenshot">
    <img src="/img/tutorial/request-form-models/image01.png">
    </div>
    
    ## Zusätzliche Formularfelder verbieten { #forbid-extra-form-fields }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Sep 20 15:10:09 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  2. docs/es/docs/tutorial/request-form-models.md

    Solo necesitas declarar un **modelo de Pydantic** con los campos que quieres recibir como **campos de formulario**, y luego declarar el parámetro como `Form`:
    
    {* ../../docs_src/request_form_models/tutorial001_an_py39.py hl[9:11,15] *}
    
    **FastAPI** **extraerá** los datos de **cada campo** de los **form data** en el request y te dará el modelo de Pydantic que definiste.
    
    ## Revisa la Documentación { #check-the-docs }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  3. docs/ru/docs/tutorial/request-form-models.md

    Вы можете проверить это в интерфейсе документации по адресу `/docs`:
    
    <div class="screenshot">
    <img src="/img/tutorial/request-form-models/image01.png">
    </div>
    
    ## Запрет дополнительных полей формы { #forbid-extra-form-fields }
    
    В некоторых случаях (не особо часто встречающихся) вам может понадобиться **ограничить** поля формы только теми, которые объявлены в Pydantic-модели. И **запретить** любые **дополнительные** поля.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Sep 30 11:24:39 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  4. docs/en/docs/tutorial/request-form-models.md

    <div class="screenshot">
    <img src="/img/tutorial/request-form-models/image01.png">
    </div>
    
    ## Forbid Extra Form Fields { #forbid-extra-form-fields }
    
    In some special use cases (probably not very common), you might want to **restrict** the form fields to only those declared in the Pydantic model. And **forbid** any **extra** fields.
    
    /// note
    
    This is supported since FastAPI version `0.114.0`. 🤓
    
    ///
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Aug 31 09:15:41 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  5. docs/pt/docs/tutorial/request-form-models.md

    ## Confira os Documentos { #check-the-docs }
    
    Você pode verificar na UI de documentação em `/docs`:
    
    <div class="screenshot">
    <img src="/img/tutorial/request-form-models/image01.png">
    </div>
    
    ## Proibir Campos Extras de Formulários { #forbid-extra-form-fields }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Nov 12 16:23:57 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  6. docs/de/docs/tutorial/request-forms.md

    ```console
    $ pip install python-multipart
    ```
    
    ///
    
    ## `Form` importieren { #import-form }
    
    Importieren Sie `Form` von `fastapi`:
    
    {* ../../docs_src/request_forms/tutorial001_an_py39.py hl[3] *}
    
    ## `Form`-Parameter definieren { #define-form-parameters }
    
    Erstellen Sie Formular-Parameter, so wie Sie es auch mit `Body` und `Query` machen würden:
    
    {* ../../docs_src/request_forms/tutorial001_an_py39.py hl[9] *}
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Sep 20 15:10:09 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  7. docs/en/docs/tutorial/request-forms.md

    ///
    
    ## Import `Form` { #import-form }
    
    Import `Form` from `fastapi`:
    
    {* ../../docs_src/request_forms/tutorial001_an_py39.py hl[3] *}
    
    ## Define `Form` parameters { #define-form-parameters }
    
    Create form parameters the same way you would for `Body` or `Query`:
    
    {* ../../docs_src/request_forms/tutorial001_an_py39.py hl[9] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Aug 31 09:15:41 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  8. docs/es/docs/tutorial/request-forms.md

    ```
    
    ///
    
    ## Importar `Form` { #import-form }
    
    Importar `Form` desde `fastapi`:
    
    {* ../../docs_src/request_forms/tutorial001_an_py39.py hl[3] *}
    
    ## Definir parámetros de `Form` { #define-form-parameters }
    
    Crea parámetros de formulario de la misma manera que lo harías para `Body` o `Query`:
    
    {* ../../docs_src/request_forms/tutorial001_an_py39.py hl[9] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  9. tests/test_union_forms.py

    from fastapi import FastAPI, Form
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class UserForm(BaseModel):
        name: str
        email: str
    
    
    class CompanyForm(BaseModel):
        company_name: str
        industry: str
    
    
    @app.post("/form-union/")
    def post_union_form(data: Annotated[Union[UserForm, CompanyForm], Form()]):
        return {"received": data}
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  10. docs/ru/docs/tutorial/request-forms-and-files.md

    ```console
    $ pip install python-multipart
    ```
    
    ///
    
    ## Импортируйте `File` и `Form` { #import-file-and-form }
    
    {* ../../docs_src/request_forms_and_files/tutorial001_an_py39.py hl[3] *}
    
    ## Определите параметры `File` и `Form` { #define-file-and-form-parameters }
    
    Создайте параметры файла и формы таким же образом, как для `Body` или `Query`:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Sep 30 11:24:39 GMT 2025
    - 2.2K bytes
    - Click Count (0)
Back to Top