Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 214 for sample (0.91 sec)

  1. docs/em/docs/advanced/openapi-callbacks.md

    ## ๐Ÿ”ฌ โฒ
    
    โ˜‘ โฒ ๐Ÿ“Ÿ ๐Ÿ”œ ๐Ÿช€ ๐Ÿ™‡ ๐Ÿ”› ๐Ÿ‘† ๐Ÿ‘ ๐Ÿ› ๏ธ ๐Ÿ“ฑ.
    
    & โšซ๏ธ ๐Ÿ”œ ๐ŸŽฒ ๐Ÿช€ ๐Ÿ“š โšช๏ธโžก๏ธ 1๏ธโƒฃ ๐Ÿ“ฑ โญ.
    
    โšซ๏ธ ๐Ÿ’ช 1๏ธโƒฃ โš–๏ธ 2๏ธโƒฃ โธ ๐Ÿ“Ÿ, ๐Ÿ’–:
    
    ```Python
    callback_url = "https://example.com/api/v1/invoices/events/"
    httpx.post(callback_url, json={"description": "Invoice paid", "paid": True})
    ```
    
    โœ‹๏ธ ๐ŸŽฒ ๐Ÿ† โš  ๐Ÿ• โฒ โš’ ๐Ÿ’ญ ๐Ÿ‘ˆ ๐Ÿ‘† ๐Ÿ› ๏ธ ๐Ÿ‘ฉโ€๐Ÿ’ป (๐Ÿ”ข ๐Ÿ‘ฉโ€๐Ÿ’ป) ๐Ÿ› ๏ธ *๐Ÿ”ข ๐Ÿ› ๏ธ* โ˜‘, ๐Ÿ›„ ๐Ÿ’ฝ ๐Ÿ‘ˆ *๐Ÿ‘† ๐Ÿ› ๏ธ* ๐Ÿ”œ ๐Ÿ“จ ๐Ÿ“จ ๐Ÿ’ช โฒ, โ™’๏ธ.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/security/simple-oauth2.md

    <img src="https://fastapi.tiangolo.com/img/tutorial/security/image05.png">
    
    ### ่Žทๅ–ๅฝ“ๅ‰็”จๆˆทๆ•ฐๆฎ
    
    ไฝฟ็”จ `/users/me` ่ทฏๅพ„็š„ `GET` ๆ“ไฝœใ€‚
    
    ๅฏไปฅๆๅ–ๅฆ‚ไธ‹ๅฝ“ๅ‰็”จๆˆทๆ•ฐๆฎ๏ผš
    
    ```JSON
    {
      "username": "johndoe",
      "email": "johndoe@example.com",
      "full_name": "John Doe",
      "disabled": false,
      "hashed_password": "fakehashedsecret"
    }
    ```
    
    <img src="https://fastapi.tiangolo.com/img/tutorial/security/image06.png">
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/security/simple-oauth2.md

    <img src="/img/tutorial/security/image05.png">
    
    ### ๐Ÿคš ๐Ÿ‘† ๐Ÿ‘ ๐Ÿ‘ฉโ€๐Ÿ’ป ๐Ÿ’ฝ
    
    ๐Ÿ”œ โš™๏ธ ๐Ÿ› ๏ธ `GET` โฎ๏ธ โžก `/users/me`.
    
    ๐Ÿ‘† ๐Ÿ”œ ๐Ÿคš ๐Ÿ‘† ๐Ÿ‘ฉโ€๐Ÿ’ป ๐Ÿ“Š, ๐Ÿ’–:
    
    ```JSON
    {
      "username": "johndoe",
      "email": "johndoe@example.com",
      "full_name": "John Doe",
      "disabled": false,
      "hashed_password": "fakehashedsecret"
    }
    ```
    
    <img src="/img/tutorial/security/image06.png">
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  4. docs/ja/docs/tutorial/schema-extra-example.md

    ไพ‹ใˆใฐใ€`Body`ใซใƒœใƒ‡ใ‚ฃใƒชใ‚ฏใ‚จใ‚นใƒˆใฎ`example`ใ‚’ๆธกใ™ใ“ใจใŒใงใใพใ™:
    
    ```Python hl_lines="21 22 23 24 25 26"
    {!../../../docs_src/schema_extra_example/tutorial003.py!}
    ```
    
    ## ใƒ‰ใ‚ญใƒฅใƒกใƒณใƒˆใฎUIใฎไพ‹
    
    ไธŠ่จ˜ใฎใ„ใšใ‚Œใฎๆ–นๆณ•ใงใ‚‚ใ€`/docs`ใฎไธญใงใฏไปฅไธ‹ใฎใ‚ˆใ†ใซใชใ‚Šใพใ™:
    
    <img src="https://fastapi.tiangolo.com/img/tutorial/body-fields/image01.png">
    
    ## ๆŠ€่ก“่ฉณ็ดฐ
    
    `example` ใจ `examples`ใซใคใ„ใฆ...
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 3K bytes
    - Viewed (0)
  5. docs/zh/docs/tutorial/first-steps.md

    ![Swagger UI](https://fastapi.tiangolo.com/img/index/index-01-swagger-ui-simple.png)
    
    ### ๅฏ้€‰็š„ API ๆ–‡ๆกฃ
    
    ๅ‰ๅพ€ <a href="http://127.0.0.1:8000/redoc" class="external-link" target="_blank">http://127.0.0.1:8000/redoc</a>ใ€‚
    
    ไฝ ๅฐ†ไผš็œ‹ๅˆฐๅฏ้€‰็š„่‡ชๅŠจ็”Ÿๆˆๆ–‡ๆกฃ ๏ผˆ็”ฑ <a href="https://github.com/Rebilly/ReDoc" class="external-link" target="_blank">ReDoc</a> ๆไพ›)๏ผš
    
    ![ReDoc](https://fastapi.tiangolo.com/img/index/index-02-redoc-simple.png)
    
    ### OpenAPI
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 12 00:06:16 GMT 2022
    - 9.2K bytes
    - Viewed (0)
  6. tests/test_security_http_basic_realm_description.py

        assert response.headers["WWW-Authenticate"] == 'Basic realm="simple"'
    
    
    def test_security_http_basic_invalid_credentials():
        response = client.get(
            "/users/me", headers={"Authorization": "Basic notabase64token"}
        )
        assert response.status_code == 401, response.text
        assert response.headers["WWW-Authenticate"] == 'Basic realm="simple"'
        assert response.json() == {"detail": "Invalid authentication credentials"}
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  7. docs/fr/docs/benchmarks.md

    En particulier, on voit Uvicorn, Starlette et FastAPI comparรฉs (parmi de nombreux autres outils).
    
    Plus le problรจme rรฉsolu par un outil est simple, mieux seront les performances obtenues. Et la plupart des tests de performance ne prennent pas en compte les fonctionnalitรฉs additionnelles fournies par les outils.
    
    La hiรฉrarchie est la suivante :
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jul 27 18:49:56 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  8. tests/test_response_model_data_filter_no_inheritance.py

        response = client.post(
            "/users", json={"email": "johndoe@example.com", "password": "secret"}
        )
        assert response.json() == {"email": "johndoe@example.com"}
    
    
    def test_filter_second_level_model():
        response = client.get("/pets/1")
        assert response.json() == {
            "name": "Nibbler",
            "owner": {"email": "johndoe@example.com"},
        }
    
    
    def test_list_of_models():
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_behind_a_proxy/test_tutorial003.py

                    "url": IsOneOf(
                        "https://stag.example.com/",
                        # TODO: remove when deprecating Pydantic v1
                        "https://stag.example.com",
                    ),
                    "description": "Staging environment",
                },
                {
                    "url": IsOneOf(
                        "https://prod.example.com/",
                        # TODO: remove when deprecating Pydantic v1
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/metadata.md

    ### Create metadata for tags
    
    Let's try that in an example with tags for `users` and `items`.
    
    Create metadata for your tags and pass it to the `openapi_tags` parameter:
    
    ```Python hl_lines="3-16  18"
    {!../../../docs_src/metadata/tutorial004.py!}
    ```
    
    Notice that you can use Markdown inside of the descriptions, for example "login" will be shown in bold (**login**) and "fancy" will be shown in italics (_fancy_).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Mar 31 23:52:53 GMT 2024
    - 5.8K bytes
    - Viewed (0)
Back to top