Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for describe (0.39 sec)

  1. docs/en/docs/how-to/separate-openapi-schemas.md

    That means that, clients using your API don't have to check if the value exists or not, they can **assume the field will always be there**, but just that in some cases it will have the default value of `None`.
    
    The way to describe this in OpenAPI, is to mark that field as **required**, because it will always be there.
    
    Because of that, the JSON Schema for a model can be different depending on if it's used for **input or output**:
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  2. docs/en/docs/deployment/concepts.md

    We will talk a lot about the running "**process**", so it's useful to have clarity about what it means, and what's the difference with the word "**program**".
    
    ### What is a Program
    
    The word **program** is commonly used to describe many things:
    
    * The **code** that you write, the **Python files**.
    * The **file** that can be **executed** by the operating system, for example: `python`, `python.exe` or `uvicorn`.
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18K bytes
    - Viewed (0)
  3. docs/es/docs/advanced/response-headers.md

    
    ## Retornar una `Response` directamente
    
    Adicionalmente, puedes añadir headers cuando se retorne una `Response` directamente.
    
    Crea un response tal como se describe en [Retornar una respuesta directamente](response-directly.md){.internal-link target=_blank} y pasa los headers como un parámetro adicional:
    
    ```Python hl_lines="10-12"
    {!../../../docs_src/response_headers/tutorial001.py!}
    ```
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Feb 07 12:51:12 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/sub-applications.md

    ### Technical Details: `root_path`
    
    When you mount a sub-application as described above, FastAPI will take care of communicating the mount path for the sub-application using a mechanism from the ASGI specification called a `root_path`.
    
    That way, the sub-application will know to use that path prefix for the docs UI.
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  5. docs/pt/docs/contributing.md

        Isso garante que se você usar um programa instalado por aquele pacote, você utilizará aquele de seu ambiente local e não outro que possa estar instalado globalmente.
    
    ### pip
    
    Após ativar o ambiente como descrito acima:
    
    <div class="termy">
    
    ```console
    $ pip install -r requirements.txt
    
    ---> 100%
    ```
    
    </div>
    
    Isso irá instalar todas as dependências e seu FastAPI local em seu ambiente local.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Jun 11 21:38:15 GMT 2023
    - 14.9K bytes
    - Viewed (0)
  6. docs/pt/docs/advanced/events.md

    ```
    
    ## Eventos alternativos (deprecados)
    
    !!! warning "Aviso"
        A maneira recomendada para lidar com a *inicialização* e o *encerramento* é usando o parâmetro `lifespan` da aplicação `FastAPI` como descrito acima.
    
        Você provavelmente pode pular essa parte.
    
    Existe uma forma alternativa para definir a execução dessa lógica durante *inicialização* e durante *encerramento*.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  7. docs/pt/docs/async.md

    ### Concorrência e hambúrgueres
    
    Essa idéia de código **assíncrono** descrito acima é algo às vezes chamado de **"concorrência"**. E é diferente de **"paralelismo"**.
    
    **Concorrência** e **paralelismo** ambos são relacionados a "diferentes coisas acontecendo mais ou menos ao mesmo tempo".
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  8. docs/pt/docs/deployment.md

    O jeito mais fácil de configurar tudo pode ser utilizando o [Gerador de Projetos **FastAPI**](project-generation.md){.internal-link target=_blank}.
    
    Ele é designado para ser integrado com esse _cluster_ Docker Swarm com Traefik e HTTPS descrito acima.
    
    Você pode gerar um projeto em cerca de 2 minutos.
    
    O projeto gerado tem instruções para fazer o _deploy_, fazendo isso leva outros 2 minutos.
    
    ## Alternativamente, faça o _deploy_ **FastAPI** sem Docker
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Aug 18 16:16:54 GMT 2022
    - 16.8K bytes
    - Viewed (0)
  9. docs/en/docs/release-notes.md

    * In `encoders.jsonable_encoder` remove parameter `sqlalchemy_safe`.
        * It was an early hack to allow returning SQLAlchemy models, but it was never documented, and the recommended way is using Pydantic's `orm_mode` as described in the tutorial: [SQL (Relational) Databases](https://fastapi.tiangolo.com/tutorial/sql-databases/).
        * PR [#1864](https://github.com/tiangolo/fastapi/pull/1864).
    
    ### Docs
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Apr 28 00:28:00 GMT 2024
    - 385.5K bytes
    - Viewed (1)
  10. docs/en/docs/advanced/response-cookies.md

    ## Return a `Response` directly
    
    You can also create cookies when returning a `Response` directly in your code.
    
    To do that, you can create a response as described in [Return a Response Directly](response-directly.md){.internal-link target=_blank}.
    
    Then set Cookies in it, and then return it:
    
    ```Python hl_lines="10-12"
    {!../../../docs_src/response_cookies/tutorial001.py!}
    ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 2.2K bytes
    - Viewed (0)
Back to top