Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Ma (0.21 sec)

  1. docs_src/custom_response/tutorial003.py

    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items():
        html_content = """
        <html>
            <head>
                <title>Some HTML in here</title>
            </head>
            <body>
                <h1>Look ma! HTML!</h1>
            </body>
        </html>
        """
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 394 bytes
    - Viewed (0)
  2. docs_src/custom_response/tutorial002.py

    
    @app.get("/items/", response_class=HTMLResponse)
    async def read_items():
        return """
        <html>
            <head>
                <title>Some HTML in here</title>
            </head>
            <body>
                <h1>Look ma! HTML!</h1>
            </body>
        </html>
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 352 bytes
    - Viewed (0)
  3. tests/test_tutorial/test_custom_response/test_tutorial004.py

    client = TestClient(app)
    
    
    html_contents = """
        <html>
            <head>
                <title>Some HTML in here</title>
            </head>
            <body>
                <h1>Look ma! HTML!</h1>
            </body>
        </html>
        """
    
    
    def test_get_custom_response():
        response = client.get("/items/")
        assert response.status_code == 200, response.text
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  4. docs/pl/docs/help-fastapi.md

    ### Testy
    
    * Pomóż mi sprawdzić, czy PR ma **testy**.
    
    * Sprawdź, czy testy **nie przechodzą** przed PR. 🚨
    
    * Następnie sprawdź, czy testy **przechodzą** po PR. ✅
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  5. docs/pl/docs/features.md

    ![wsparcie edytora](https://fastapi.tiangolo.com/img/pycharm-completion.png)
    
    Otrzymasz uzupełnienie nawet w miejscach, w których normalnie uzupełnienia nie ma. Na przykład klucz "price" w treści JSON (który mógł być zagnieżdżony), który pochodzi z zapytania.
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  6. docs_src/custom_response/tutorial004.py

    app = FastAPI()
    
    
    def generate_html_response():
        html_content = """
        <html>
            <head>
                <title>Some HTML in here</title>
            </head>
            <body>
                <h1>Look ma! HTML!</h1>
            </body>
        </html>
        """
        return HTMLResponse(content=html_content, status_code=200)
    
    
    @app.get("/items/", response_class=HTMLResponse)
    async def read_items():
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 491 bytes
    - Viewed (0)
  7. docs/pl/docs/index.md

    * Otrzymuje żądania HTTP w _ścieżce_ `/` i `/items/{item_id}`.
    * Obie _ścieżki_ używają operacji `GET` (znane także jako _metody_ HTTP).
    * _Ścieżka_ `/items/{item_id}` ma _parametr ścieżki_ `item_id` który powinien być obiektem typu `int`.
    * _Ścieżka_ `/items/{item_id}` ma opcjonalny _parametr zapytania_ typu `str` o nazwie `q`.
    
    ### Interaktywna dokumentacja API
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 23:58:47 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  8. docs/fr/docs/alternatives.md

    Cela a permis de ne pas avoir à écrire YAML (une autre syntaxe) à l'intérieur des docstrings Python.
    
    Cette combinaison de Flask, Flask-apispec avec Marshmallow et Webargs était ma stack backend préférée jusqu'à la création de **FastAPI**.
    
    Son utilisation a conduit à la création de plusieurs générateurs Flask full-stack. Ce sont les principales stacks que
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 27.5K bytes
    - Viewed (0)
  9. docs/it/docs/index.md

        * Sistemi di generazione di codice dal lato client, per molti linguaggi.
    * Fornirà 2 interfacce di documentazione dell'API interattive.
    
    ---
    
    Questa è solo la punta dell'iceberg, ma dovresti avere già un'idea di come il tutto funzioni.
    
    Prova a cambiare questa riga di codice:
    
    ```Python
        return {"item_name": item.name, "item_id": item_id}
    ```
    
    ...da:
    
    ```Python
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 23:58:47 GMT 2024
    - 19.3K bytes
    - Viewed (0)
Back to top