Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 41 for existent (0.15 sec)

  1. docs_src/app_testing/app_b_an_py39/test_main.py

            json={"id": "bazz", "title": "Bazz", "description": "Drop the bazz"},
        )
        assert response.status_code == 400
        assert response.json() == {"detail": "Invalid X-Token header"}
    
    
    def test_create_existing_item():
        response = client.post(
            "/items/",
            headers={"X-Token": "coneofsilence"},
            json={
                "id": "foo",
                "title": "The Foo ID Stealers",
    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_src/app_testing/app_b_py310/test_main.py

            json={"id": "bazz", "title": "Bazz", "description": "Drop the bazz"},
        )
        assert response.status_code == 400
        assert response.json() == {"detail": "Invalid X-Token header"}
    
    
    def test_create_existing_item():
        response = client.post(
            "/items/",
            headers={"X-Token": "coneofsilence"},
            json={
                "id": "foo",
                "title": "The Foo ID Stealers",
    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)
  3. docs/fr/docs/index.md

    ---
    
    Pour revenir à l'exemple de code précédent, **FastAPI** permet de :
    
    * Valider que `item_id` existe dans le chemin des requêtes `GET` et `PUT`.
    * Valider que `item_id` est de type `int` pour les requêtes `GET` et `PUT`.
        * Si ce n'est pas le cas, le client voit une erreur utile et claire.
    * Vérifier qu'il existe un paramètre de requête facultatif nommé `q` (comme dans `http://127.0.0.1:8000/items/foo?q=somequery`) pour les requêtes `GET`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 22K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/handling-errors.md

    Sie müssten beispielsweise einem Client sagen:
    
    * Dass er nicht die notwendigen Berechtigungen hat, eine Aktion auszuführen.
    * Dass er zu einer Ressource keinen Zugriff hat.
    * Dass die Ressource, auf die er zugreifen möchte, nicht existiert.
    * usw.
    
    In diesen Fällen geben Sie normalerweise einen **HTTP-Statuscode** im Bereich **400** (400 bis 499) zurück.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:28:29 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  5. docs/de/docs/tutorial/security/simple-oauth2.md

    Beide Abhängigkeiten geben nur dann einen HTTP-Error zurück, wenn der Benutzer nicht existiert oder inaktiv ist.
    
    In unserem Endpunkt erhalten wir also nur dann einen Benutzer, wenn der Benutzer existiert, korrekt authentifiziert wurde und aktiv ist:
    
    === "Python 3.10+"
    
        ```Python hl_lines="58-66  69-74  94"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:08:44 GMT 2024
    - 14.3K bytes
    - Viewed (0)
  6. docs/pt/docs/fastapi-people.md

    {% endfor %}
    
    </div>
    {% endif %}
    
    Existem muitos outros contribuidores (mais de uma centena), você pode ver todos eles em <a href="https://github.com/tiangolo/fastapi/graphs/contributors" class="external-link" target="_blank">Página de Contribuidores do FastAPI no GitHub</a>. 👷
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  7. docs/pt/docs/help-fastapi.md

    Você gosta do **FastAPI**?
    
    Você gostaria de ajudar o FastAPI, outros usários, e o autor?
    
    Ou você gostaria de obter ajuda relacionada ao **FastAPI**??
    
    Existem métodos muito simples de ajudar (A maioria das ajudas podem ser feitas com um ou dois cliques).
    
    E também existem vários modos de se conseguir ajuda.
    
    ## Inscreva-se na newsletter
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/bigger-applications.md

    * finde das Modul `dependencies` (eine imaginäre Datei unter `app/routers/dependencies.py`) ...
    * und importiere daraus die Funktion `get_token_header`.
    
    Aber diese Datei existiert nicht, unsere Abhängigkeiten befinden sich in einer Datei unter `app/dependencies.py`.
    
    Erinnern Sie sich, wie unsere Anwendungs-/Dateistruktur aussieht:
    
    <img src="/img/tutorial/bigger-applications/package.svg">
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:27:59 GMT 2024
    - 21.1K bytes
    - Viewed (0)
  9. docs/es/docs/python-types.md

    {!../../../docs_src/python_types/tutorial005.py!}
    ```
    
    ### Tipos con sub-tipos
    
    Existen algunas estructuras de datos que pueden contener otros valores, como `dict`, `list`, `set` y `tuple`. Los valores internos pueden tener su propio tipo también.
    
    Para declarar esos tipos y sub-tipos puedes usar el módulo estándar de Python `typing`.
    
    Él existe específicamente para dar soporte a este tipo de type hints.
    
    #### Listas
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  10. docs/pt/docs/python-types.md

    ```
    
    ### Tipos genéricos com parâmetros de tipo
    
    Existem algumas estruturas de dados que podem conter outros valores, como `dict`, `list`, `set` e `tuple`. E os valores internos também podem ter seu próprio tipo.
    
    Para declarar esses tipos e os tipos internos, você pode usar o módulo Python padrão `typing`.
    
    Ele existe especificamente para suportar esses type hints.
    
    #### `List`
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.6K bytes
    - Viewed (0)
Back to top