Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 241 - 250 of 492 for mask (0.01 seconds)

  1. tests/test_tutorial/test_path_operation_configurations/test_tutorial006.py

    import pytest
    from fastapi.testclient import TestClient
    
    from docs_src.path_operation_configuration.tutorial006_py39 import app
    
    client = TestClient(app)
    
    
    @pytest.mark.parametrize(
        "path,expected_status,expected_response",
        [
            ("/items/", 200, [{"name": "Foo", "price": 42}]),
            ("/users/", 200, [{"username": "johndoe"}]),
            ("/elements/", 200, [{"item_id": "Foo"}]),
        ],
    )
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  2. docs/pt/docs/tutorial/request-files.md

    {* ../../docs_src/request_files/tutorial001_an_py39.py hl[9] *}
    
    /// info | Informação
    
    `File` é uma classe que herda diretamente de `Form`.
    
    Mas lembre-se que quando você importa `Query`, `Path`, `File` e outros de `fastapi`, eles são, na verdade, funções que retornam classes especiais.
    
    ///
    
    /// tip | Dica
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Nov 12 16:23:57 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  3. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/CheckSubprojectsInfo.kt

            if (subprojectsJson.asFile.readText() != generateSubprojectsJson()) {
                throw GradleException(
                    "New project(s) added without updating subproject JSON. Please run `:${GenerateSubprojectsInfo.TASK_NAME}` task."
                )
            }
        }
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Jul 07 13:12:26 GMT 2021
    - 1.2K bytes
    - Click Count (0)
  4. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/extension/IntegrationTestExtension.kt

    package gradlebuild.integrationtests.extension
    
    import org.gradle.api.provider.Property
    
    
    abstract class IntegrationTestExtension {
        /**
         * If enabled, there will be a `GenerateAutoTestedSamplesTestTask` task
         * that generates a subclass of `AbstractAutoTestedSamplesTest` to
         * test all snippets embedded in javadoc with `class='autoTested'`.
         */
        abstract val generateDefaultAutoTestedSamplesTest: Property<Boolean>
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Jun 27 08:23:32 GMT 2025
    - 1.1K bytes
    - Click Count (0)
  5. tests/test_tutorial/test_dependencies/test_tutorial005.py

        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.dependencies.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    @pytest.mark.parametrize(
        "path,cookie,expected_status,expected_response",
        [
            (
                "/items",
                "from_cookie",
                200,
                {"q_or_cookie": "from_cookie"},
            ),
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  6. docs/pt/docs/advanced/websockets.md

    Ou você pode ter qualquer outra forma de comunicar com o endpoint WebSocket.
    
    ---
    
    Mas para este exemplo, usaremos um documento HTML muito simples com algum JavaScript, tudo dentro de uma string longa.
    
    Esse, é claro, não é o ideal e você não o usaria para produção.
    
    Na produção, você teria uma das opções acima.
    
    Mas é a maneira mais simples de focar no lado do servidor de WebSockets e ter um exemplo funcional:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 6K bytes
    - Click Count (0)
  7. docs/es/docs/how-to/conditional-openapi.md

    Si hay una falla de seguridad en tu código, seguirá existiendo.
    
    Ocultar la documentación solo hace que sea más difícil entender cómo interactuar con tu API y podría dificultar más depurarla en producción. Podría considerarse simplemente una forma de <a href="https://en.wikipedia.org/wiki/Security_through_obscurity" class="external-link" target="_blank">Seguridad mediante oscuridad</a>.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  8. tests/test_custom_route_class.py

    
    router_b.include_router(router=router_c, prefix="/c")
    router_a.include_router(router=router_b, prefix="/b")
    app.include_router(router=router_a, prefix="/a")
    
    
    client = TestClient(app)
    
    
    @pytest.mark.parametrize(
        "path,expected_status,expected_response",
        [
            ("/a", 200, {"msg": "A"}),
            ("/a/b", 200, {"msg": "B"}),
            ("/a/b/c", 200, {"msg": "C"}),
        ],
    )
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 3.1K bytes
    - Click Count (0)
  9. docs/pt/docs/tutorial/encoder.md

    A função não retorna um grande `str` contendo os dados no formato JSON (como uma string). Mas sim, retorna uma estrutura de dados padrão do Python (por exemplo, um `dict`) com valores e subvalores compatíveis com JSON.
    
    /// note | Nota
    
    `jsonable_encoder` é realmente usado pelo **FastAPI** internamente para converter dados. Mas também é útil em muitos outros cenários.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Nov 12 16:23:57 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  10. docs/en/docs/management.md

    Some of the tasks they can perform include:
    
    * Adding labels to PRs.
    * Editing PR titles.
    * Adding commits on top of PRs to tweak them.
    * Mark answers in GitHub Discussions questions, etc.
    * Merge some specific types of PRs.
    
    You can see the current team members in [FastAPI People - Team](./fastapi-people.md#team){.internal-link target=_blank}.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Jul 31 14:09:15 GMT 2024
    - 1.7K bytes
    - Click Count (0)
Back to Top