Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1101 - 1110 of 1,916 for FastApi (0.06 seconds)

  1. docs/en/docs/how-to/authentication-error-status-code.md

    # Use Old 403 Authentication Error Status Codes { #use-old-403-authentication-error-status-codes }
    
    Before FastAPI version `0.122.0`, when the integrated security utilities returned an error to the client after a failed authentication, they used the HTTP status code `403 Forbidden`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 24 19:03:06 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  2. docs/pt/docs/advanced/wsgi.md

    {* ../../docs_src/wsgi/tutorial001_py39.py hl[2:3,3] *}
    
    ## Confira { #check-it }
    
    Agora, todas as requisições sob o path `/v1/` serão manipuladas pela aplicação Flask.
    
    E o resto será manipulado pelo **FastAPI**.
    
    Se você rodar a aplicação e ir até <a href="http://localhost:8000/v1/" class="external-link" target="_blank">http://localhost:8000/v1/</a>, você verá o retorno do Flask:
    
    ```txt
    Hello, World from Flask!
    ```
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  3. docs/pt/docs/how-to/authentication-error-status-code.md

    Antes da versão `0.122.0` do FastAPI, quando os utilitários de segurança integrados retornavam um erro ao cliente após uma falha na autenticação, eles usavam o código de status HTTP `403 Forbidden`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 19:59:04 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  4. tests/test_tutorial/test_path_params/test_tutorial002.py

    from fastapi.testclient import TestClient
    
    from docs_src.path_params.tutorial002_py39 import app
    
    client = TestClient(app)
    
    
    def test_get_items():
        response = client.get("/items/1")
        assert response.status_code == 200, response.text
        assert response.json() == {"item_id": 1}
    
    
    def test_get_items_invalid_id():
        response = client.get("/items/item1")
        assert response.status_code == 422, response.text
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  5. tests/test_regex_deprecated_body.py

    from typing import Annotated
    
    import pytest
    from fastapi import FastAPI, Form
    from fastapi.exceptions import FastAPIDeprecationWarning
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from .utils import needs_py310
    
    
    def get_client():
        app = FastAPI()
        with pytest.warns(FastAPIDeprecationWarning):
    
            @app.post("/items/")
            async def read_items(
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  6. docs/uk/docs/tutorial/testing.md

    Ви також можете використовувати `from starlette.testclient import TestClient`.
    
    **FastAPI** надає той самий `starlette.testclient` під назвою `fastapi.testclient` для зручності розробників, але він безпосередньо походить із Starlette.
    
    ///
    
    /// tip | Порада
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 9.5K bytes
    - Click Count (0)
  7. docs/pt/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md

    Se você tem uma aplicação FastAPI antiga, pode estar usando o Pydantic versão 1.
    
    O FastAPI tem suporte ao Pydantic v1 ou v2 desde a versão 0.100.0.
    
    Se você tiver o Pydantic v2 instalado, ele será utilizado. Se, em vez disso, tiver o Pydantic v1, será ele que será utilizado.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Nov 12 16:23:57 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  8. docs/es/docs/deployment/docker.md

    ![ReDoc](https://fastapi.tiangolo.com/img/index/index-02-redoc-simple.png)
    
    ## Construir una Imagen de Docker con un FastAPI de Un Solo Archivo { #build-a-docker-image-with-a-single-file-fastapi }
    
    Si tu FastAPI es un solo archivo, por ejemplo, `main.py` sin un directorio `./app`, tu estructura de archivos podría verse así:
    
    ```
    .
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 32K bytes
    - Click Count (0)
  9. docs/uk/docs/tutorial/metadata.md

    ## Метадані для API
    
    Ви можете встановити такі поля, які використовуються в специфікації OpenAPI та в автоматично згенерованих інтерфейсах документації API:
    
    | Параметр | Тип | Опис |
    |------------|------|-------------|
    | `title` | `str` | Назва API. |
    | `summary` | `str` | Короткий опис API. <small>Доступно з OpenAPI 3.1.0, FastAPI 0.99.0.</small> |
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Mar 19 17:09:57 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  10. docs_src/security/tutorial006_py39.py

    from fastapi import Depends, FastAPI
    from fastapi.security import HTTPBasic, HTTPBasicCredentials
    
    app = FastAPI()
    
    security = HTTPBasic()
    
    
    @app.get("/users/me")
    def read_current_user(credentials: HTTPBasicCredentials = Depends(security)):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 321 bytes
    - Click Count (0)
Back to Top