Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 261 - 270 of 581 for ello (0.04 seconds)

  1. docs/fr/docs/alternatives.md

    ```
    
    L’opération de chemin d'accès correspondante dans **FastAPI** pourrait ressembler à ceci :
    
    ```Python hl_lines="1"
    @app.get("/some/url")
    def read_url():
        return {"message": "Hello World"}
    ```
    
    Notez les similitudes entre `requests.get(...)` et `@app.get(...)`.
    
    /// check | A inspiré **FastAPI** à
    
    * Avoir une API simple et intuitive.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 26.6K bytes
    - Click Count (0)
  2. docs_src/json_base64_bytes/tutorial001_py310.py

    @app.post("/data")
    def post_data(body: DataInput):
        content = body.data.decode("utf-8")
        return {"description": body.description, "content": content}
    
    
    @app.get("/data")
    def get_data() -> DataOutput:
        data = "hello".encode("utf-8")
        return DataOutput(description="A plumbus", data=data)
    
    
    @app.post("/data-in-out")
    def post_data_in_out(body: DataInputOutput) -> DataInputOutput:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 21 13:01:31 GMT 2026
    - 892 bytes
    - Click Count (0)
  3. docs/es/docs/deployment/cloud.md

    Puedes usar prácticamente **cualquier proveedor de nube** para desplegar tu aplicación FastAPI.
    
    En la mayoría de los casos, los principales proveedores de nube tienen guías para desplegar FastAPI con ellos.
    
    ## FastAPI Cloud { #fastapi-cloud }
    
    **[FastAPI Cloud](https://fastapicloud.com)** está construido por el mismo autor y equipo detrás de **FastAPI**.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 1.3K bytes
    - Click Count (0)
  4. docs/fr/docs/advanced/strict-content-type.md

    Ce type d’attaque est surtout pertinent lorsque :
    
    * l’application s’exécute localement (par ex. sur `localhost`) ou sur un réseau interne
    * et l’application n’a aucun mécanisme d’authentification, elle part du principe que toute requête provenant du même réseau est fiable.
    
    ## Exemple d’attaque { #example-attack }
    
    Imaginez que vous mettiez au point un moyen d’exécuter un agent IA local.
    
    Il expose une API à l’adresse
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:33:45 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  5. fastapi/.agents/skills/fastapi/SKILL.md

        q: Annotated[str | None, Query(max_length=50)] = None,
    ):
        return {"message": "Hello World"}
    ```
    
    instead of:
    
    ```python
    # DO NOT DO THIS
    @app.get("/items/{item_id}")
    async def read_item(
        item_id: int = Path(ge=1, description="The item ID"),
        q: str | None = Query(default=None, max_length=50),
    ):
        return {"message": "Hello World"}
    ```
    
    ### For Dependencies
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 10:05:57 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  6. tests/test_sse.py

            yield {"name": item.name, "description": item.description}
    
    
    @app.get("/items/stream-sse-event", response_class=EventSourceResponse)
    async def sse_items_event():
        yield ServerSentEvent(data="hello", event="greeting", id="1")
        yield ServerSentEvent(data={"key": "value"}, event="json-data", id="2")
        yield ServerSentEvent(comment="just a comment")
        yield ServerSentEvent(data="retry-test", retry=5000)
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 09:21:52 GMT 2026
    - 9.8K bytes
    - Click Count (0)
  7. samples/guide/src/main/java/okhttp3/recipes/WebSocketEcho.java

        client.dispatcher().executorService().shutdown();
      }
    
      @Override public void onOpen(WebSocket webSocket, Response response) {
        webSocket.send("Hello...");
        webSocket.send("...World!");
        webSocket.send(ByteString.decodeHex("deadbeef"));
        webSocket.close(1000, "Goodbye, World!");
      }
    
      @Override public void onMessage(WebSocket webSocket, String text) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Apr 04 11:40:21 GMT 2024
    - 1.6K bytes
    - Click Count (0)
  8. docs/fr/docs/fastapi-cli.md

    ce qui serait équivalent à :
    
    ```python
    from backend.main import app
    ```
    
    ### `fastapi dev` avec un chemin { #fastapi-dev-with-path }
    
    Vous pouvez également passer le chemin du fichier à la commande `fastapi dev`, et elle devinera l’objet d’application FastAPI à utiliser :
    
    ```console
    $ fastapi dev main.py
    ```
    
    Mais vous devez vous rappeler de passer le bon chemin à chaque fois que vous appelez la commande `fastapi`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 6.4K bytes
    - Click Count (0)
  9. docs_src/custom_docs_ui/tutorial002_py310.py

            title=app.title + " - ReDoc",
            redoc_js_url="/static/redoc.standalone.js",
        )
    
    
    @app.get("/users/{username}")
    async def read_user(username: str):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  10. tests/test_stringified_annotation_dependency_py314.py

        app = FastAPI()
    
        client = TestClient(app)
    
        @app.get("/")
        async def get(
            current_user: Annotated[DummyUser | None, Depends(get_current_user)],
        ) -> str:
            return "hello world"
    
        response = client.get("/")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 04 13:49:44 GMT 2026
    - 711 bytes
    - Click Count (0)
Back to Top