Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 1,562 for example (0.08 sec)

  1. docs/em/docs/tutorial/security/first-steps.md

    ```
    
    /// tip
    
    πŸ“₯ `tokenUrl="token"` πŸ”— βš– πŸ“› `token` πŸ‘ˆ πŸ‘₯ 🚫 ✍. ⚫️ βš– πŸ“›, ⚫️ πŸŒ“ `./token`.
    
    ↩️ πŸ‘₯ βš™οΈ βš– πŸ“›, πŸš₯ πŸ‘† πŸ› οΈ πŸ”Ž `https://example.com/`, ‴️ ⚫️ πŸ”œ πŸ”— `https://example.com/token`. βœ‹οΈ πŸš₯ πŸ‘† πŸ› οΈ πŸ”Ž `https://example.com/api/v1/`, ‴️ ⚫️ πŸ”œ πŸ”— `https://example.com/api/v1/token`.
    
    βš™οΈ βš– πŸ“› ⚠ βš’ πŸ’­ πŸ‘† 🈸 🚧 πŸ‘· 🏧 βš™οΈ πŸ’Ό πŸ’– [β›… πŸ—³](../../advanced/behind-a-proxy.md){.internal-link target=_blank}.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/response-status-code.md

    * **`200`** and above are for "Successful" responses. These are the ones you would use the most.
        * `200` is the default status code, which means everything was "OK".
        * Another example would be `201`, "Created". It is commonly used after creating a new record in the database.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 28 11:13:18 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/cors.md

    πŸ“„ ❌ πŸ•β€πŸ¦Ί:
    
    * `allow_origins` - πŸ“‡ πŸ‡¨πŸ‡³ πŸ‘ˆ πŸ”œ βœ” βš’ βœ–οΈ-πŸ‡¨πŸ‡³ πŸ“¨. 🀢 β“‚. `['https://example.org', 'https://www.example.org']`. πŸ‘† πŸ’ͺ βš™οΈ `['*']` βœ” πŸ™† πŸ‡¨πŸ‡³.
    * `allow_origin_regex` - 🎻 🎻 🏏 πŸ›‘ πŸ‡¨πŸ‡³ πŸ‘ˆ πŸ”œ βœ” βš’ βœ–οΈ-πŸ‡¨πŸ‡³ πŸ“¨. βœ… `'https://.*\.example\.org'`.
    * `allow_methods` - πŸ“‡ πŸ‡ΊπŸ‡ΈπŸ” πŸ‘©β€πŸ”¬ πŸ‘ˆ πŸ”œ βœ” βœ–οΈ-πŸ‡¨πŸ‡³ πŸ“¨. πŸ”’ `['GET']`. πŸ‘† πŸ’ͺ βš™οΈ `['*']` βœ” 🌐 🐩 πŸ‘©β€πŸ”¬.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. architecture/ambient/peer-authentication.md

    ```yaml
    apiVersion: security.istio.io/v1
    kind: PeerAuthentication
    metadata:
      name: strict-and-permissive-mtls
    spec:
      selector:
        matchLabels:
          app: a
      mtls:
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 20:04:20 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_response_model/test_tutorial003_01.py

            json={
                "username": "foo",
                "password": "fighter",
                "email": "foo@example.com",
                "full_name": "Grave Dohl",
            },
        )
        assert response.status_code == 200, response.text
        assert response.json() == {
            "username": "foo",
            "email": "foo@example.com",
            "full_name": "Grave Dohl",
        }
    
    
    def test_openapi_schema():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 04 20:47:07 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_schema_extra_example/test_tutorial005_an.py

                                            "title": "Item",
                                        }
                                    ),
                                    "examples": {
                                        "normal": {
                                            "summary": "A normal example",
                                            "description": "A **normal** item works correctly.",
                                            "value": {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 26 18:03:13 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_schema_extra_example/test_tutorial005_py310.py

                                            "title": "Item",
                                        }
                                    ),
                                    "examples": {
                                        "normal": {
                                            "summary": "A normal example",
                                            "description": "A **normal** item works correctly.",
                                            "value": {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 26 18:03:13 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  8. docs_src/security/tutorial003_py310.py

    fake_users_db = {
        "johndoe": {
            "username": "johndoe",
            "full_name": "John Doe",
            "email": "johndoe@example.com",
            "hashed_password": "fakehashedsecret",
            "disabled": False,
        },
        "alice": {
            "username": "alice",
            "full_name": "Alice Wonderson",
            "email": "alice@example.com",
            "hashed_password": "fakehashedsecret2",
            "disabled": True,
        },
    }
    
    app = FastAPI()
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  9. .github/DISCUSSION_TEMPLATE/questions.yml

            - label: I commit to help with one of those options πŸ‘†
              required: true
      - type: textarea
        id: example
        attributes:
          label: Example Code
          description: |
            Please add a self-contained, [minimal, reproducible, example](https://stackoverflow.com/help/minimal-reproducible-example) with your use case.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Aug 03 15:59:41 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/testing.md

    ```Python hl_lines="3"
    {!../../docs_src/app_testing/test_main.py!}
    ```
    
    ...and have the code for the tests just like before.
    
    ## Testing: extended example
    
    Now let's extend this example and add more details to see how to test different parts.
    
    ### Extended **FastAPI** app file
    
    Let's continue with the same file structure as before:
    
    ```
    .
    β”œβ”€β”€ app
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top