Search Options

Results per page
Sort
Preferred Languages
Advance

Results 301 - 310 of 1,483 for exemplo (0.08 sec)

  1. tests/test_tutorial/test_response_model/test_tutorial003.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)
  2. docs/en/docs/tutorial/handling-errors.md

    In this example, when the client requests an item by an ID that doesn't exist, raise an exception with a status code of `404`:
    
    ```Python hl_lines="11"
    {!../../docs_src/handling_errors/tutorial001.py!}
    ```
    
    ### The resulting response
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. docs/pt/docs/tutorial/body-fields.md

    VocΓͺ irΓ‘ aprender mais sobre adicionar informaçáes extras posteriormente nessa documentação, quando estiver aprendendo a declarar exemplos.
    
    ## Recapitulando
    
    VocΓͺ pode usar `Field` do Pydantic para declarar validaçáes extras e metadados para atributos do modelo.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. .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)
  9. 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)
  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