Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 120 for example (0.29 sec)

  1. docs/em/docs/advanced/settings.md

    <div class="termy">
    
    ```console
    $ ADMIN_EMAIL="deadpool@example.com" APP_NAME="ChimichangApp" uvicorn main:app
    
    <span style="color: green;">INFO</span>:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    ```
    
    </div>
    
    !!! tip
        ⚒ 💗 🇨🇻 {👁 📋 🎏 👫 ⏮️ 🚀, &amp; 🚮 👫 🌐 ⏭ 📋.
    
    &amp; ⤴️ `admin_email` ⚒ 🔜 ⚒ `"deadpool@example.com"`.
    
    `app_name` 🔜 `"ChimichangApp"`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  2. docs/de/docs/advanced/behind-a-proxy.md

        // Hier mehr Einstellungen
        "servers": [
            {
                "url": "/api/v1"
            },
            {
                "url": "https://stag.example.com",
                "description": "Staging environment"
            },
            {
                "url": "https://prod.example.com",
                "description": "Production environment"
            }
        ],
        "paths": {
                // Hier mehr Einstellungen
        }
    }
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:30:07 GMT 2024
    - 13.1K bytes
    - Viewed (0)
  3. docs/em/docs/alternatives.md

    👈 ⚫️❔, 💬 🛂 🕸:
    
    &gt; 📨 1️⃣ 🏆 ⏬ 🐍 📦 🌐 🕰
    
    🌌 👆 ⚙️ ⚫️ 📶 🙅. 🖼, `GET` 📨, 👆 🔜 ✍:
    
    ```Python
    response = requests.get("http://example.com/some/url")
    ```
    
    FastAPI 😑 🛠️ *➡ 🛠️* 💪 👀 💖:
    
    ```Python hl_lines="1"
    @app.get("/some/url")
    def read_url():
        return {"message": "Hello World"}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_sql_databases/test_sql_databases.py

        if test_db.is_file():  # pragma: nocover
            test_db.unlink()
        os.chdir(cwd)
    
    
    # TODO: pv2 add version with Pydantic v2
    @needs_pydanticv1
    def test_create_user(client):
        test_user = {"email": "johndoe@example.com", "password": "secret"}
        response = client.post("/users/", json=test_user)
        assert response.status_code == 200, response.text
        data = response.json()
        assert test_user["email"] == data["email"]
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.1K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_sql_databases/test_sql_databases_middleware_py310.py

            test_db.unlink()
        os.chdir(cwd)
    
    
    @needs_py310
    # TODO: pv2 add version with Pydantic v2
    @needs_pydanticv1
    def test_create_user(client):
        test_user = {"email": "johndoe@example.com", "password": "secret"}
        response = client.post("/users/", json=test_user)
        assert response.status_code == 200, response.text
        data = response.json()
        assert test_user["email"] == data["email"]
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_security/test_tutorial005_py39.py

        )
        assert response.status_code == 200, response.text
        assert response.json() == {
            "username": "johndoe",
            "full_name": "John Doe",
            "email": "johndoe@example.com",
            "disabled": False,
        }
    
    
    @needs_py39
    def test_incorrect_token(client: TestClient):
        response = client.get("/users/me", headers={"Authorization": "Bearer nonexistent"})
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  7. docs/en/docs/img/deployment/https/https08.drawio

                    </mxCell>
                    <mxCell id="29" value="&lt;font face=&quot;Roboto&quot; data-font-src=&quot;https://fonts.googleapis.com/css?family=Roboto&quot; style=&quot;font-size: 24px&quot;&gt;https://someapp.example.com&lt;/font&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;strokeWidth=4;" parent="33" vertex="1">
                        <mxGeometry x="60" y="27" width="380" height="250" as="geometry"/>
                    </mxCell>
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 12 00:06:16 GMT 2022
    - 20.9K bytes
    - Viewed (0)
  8. fastapi/openapi/models.py

        allowReserved: Optional[bool] = None
    
    
    class MediaType(BaseModelWithConfig):
        schema_: Optional[Union[Schema, Reference]] = Field(default=None, alias="schema")
        example: Optional[Any] = None
        examples: Optional[Dict[str, Union[Example, Reference]]] = None
        encoding: Optional[Dict[str, Encoding]] = None
    
    
    class ParameterBase(BaseModelWithConfig):
        description: Optional[str] = None
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 22:49:33 GMT 2024
    - 15K bytes
    - Viewed (1)
  9. docs/fr/docs/tutorial/query-params-str-validations.md

    # Paramètres de requête et validations de chaînes de caractères
    
    **FastAPI** vous permet de déclarer des informations et des validateurs additionnels pour vos paramètres de requêtes.
    
    Commençons avec cette application pour exemple :
    
    ```Python hl_lines="9"
    {!../../../docs_src/query_params_str_validations/tutorial001.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jul 27 18:53:21 GMT 2023
    - 9.8K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/security/simple-oauth2.md

        If you need to enforce it, use `OAuth2PasswordRequestFormStrict` instead of `OAuth2PasswordRequestForm`.
    
    * An optional `client_id` (we don't need it for our example).
    * An optional `client_secret` (we don't need it for our example).
    
    !!! info
        The `OAuth2PasswordRequestForm` is not a special class for **FastAPI** as is `OAuth2PasswordBearer`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 12.5K bytes
    - Viewed (0)
Back to top