Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 47 for exists (0.18 sec)

  1. docs_src/app_testing/app_b_an_py310/test_main.py

                "title": "The Foo ID Stealers",
                "description": "There goes my stealer",
            },
        )
        assert response.status_code == 400
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  2. docs/fr/docs/tutorial/path-params.md

    il existe de nombreux outils compatibles.
    
    Grâce à cela, **FastAPI** lui-même fournit une documentation alternative (utilisant ReDoc), qui peut être lue
    sur <a href="http://127.0.0.1:8000/redoc" class="external-link" target="_blank">http://127.0.0.1:8000/redoc</a> :
    
    <img src="/img/tutorial/path-params/image02.png">
    
    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)
  3. docs/ja/docs/deployment/concepts.md

    次の章では、FastAPIアプリケーションをデプロイするための**具体的なレシピ**を紹介します。
    
    しかし、今はこれらの重要な**コンセプトに基づくアイデア**を確認しましょう。これらのコンセプトは、他のどのタイプのWeb APIにも当てはまります。💡
    
    ## セキュリティ - HTTPS
    
    <!-- NOTE: https.md written in Japanese does not exist, so it redirects to English one  -->
    [前チャプターのHTTPSについて](https.md){.internal-link target=_blank}では、HTTPSがどのようにAPIを暗号化するのかについて学びました。
    
    通常、アプリケーションサーバにとって**外部の**コンポーネントである**TLS Termination Proxy**によって提供されることが一般的です。このプロキシは通信の暗号化を担当します。
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 24.1K bytes
    - Viewed (0)
  4. docs/it/docs/index.md

    * Generazione di una documentazione dell'API interattiva, con scelta dell'interfaccia grafica:
        * Swagger UI.
        * ReDoc.
    
    ---
    
    Tornando al precedente esempio, **FastAPI**:
    
    * Validerà che esiste un `item_id` nel percorso delle richieste `GET` e `PUT`.
    * Validerà che `item_id` sia di tipo `int` per le richieste `GET` e `PUT`.
        * Se non lo è, il client vedrà un errore chiaro e utile.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 23:58:47 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/security/simple-oauth2.md

    Both of these dependencies will just return an HTTP error if the user doesn't exist, or if is inactive.
    
    So, in our endpoint, we will only get a user if the user exists, was correctly authenticated, and is active:
    
    === "Python 3.10+"
    
        ```Python hl_lines="58-66  69-74  94"
        {!> ../../../docs_src/security/tutorial003_an_py310.py!}
    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)
  6. docs/pt/docs/advanced/templates.md

    # Templates
    
    Você pode usar qualquer template engine com o **FastAPI**.
    
    Uma escolha comum é o Jinja2, o mesmo usado pelo Flask e outras ferramentas.
    
    Existem utilitários para configurá-lo facilmente que você pode usar diretamente em sua aplicação **FastAPI** (fornecidos pelo Starlette).
    
    ## Instalação de dependências
    
    Para instalar o `jinja2`, siga o código abaixo:
    
    <div class="termy">
    
    ```console
    $ pip install jinja2
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Mar 28 04:05:17 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  7. docs/pt/docs/advanced/events.md

    !!! 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 May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  8. scripts/docs.py

    @app.command()
    def new_lang(lang: str = typer.Argument(..., callback=lang_callback)):
        """
        Generate a new docs translation directory for the language LANG.
        """
        new_path: Path = Path("docs") / lang
        if new_path.exists():
            typer.echo(f"The language was already created: {lang}")
            raise typer.Abort()
        new_path.mkdir()
        new_config_path: Path = Path(new_path) / mkdocs_name
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jan 22 19:26:14 GMT 2024
    - 10.9K bytes
    - Viewed (1)
  9. docs/es/docs/index.md

        * ReDoc.
    
    ---
    
    Volviendo al ejemplo de código anterior, **FastAPI** va a:
    
    * Validar que existe un `item_id` en el path para requests usando `GET` y `PUT`.
    * Validar que el `item_id` es del tipo `int` para requests de tipo `GET` y `PUT`.
        * Si no lo es, el cliente verá un mensaje de error útil y claro.
    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)
  10. docs/en/docs/deployment/concepts.md

    I'll tell you a bit more about these **concepts** here, and that would hopefully give you the **intuition** you would need to decide how to deploy your API in very different environments, possibly even in **future** ones that don't exist yet.
    
    By considering these concepts, you will be able to **evaluate and design** the best way to deploy **your own APIs**.
    
    In the next chapters, I'll give you more **concrete recipes** to deploy FastAPI applications.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 18K bytes
    - Viewed (0)
Back to top