Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 532 for noto (0.13 sec)

  1. tests/test_request_body_parameters_media_type.py

    import typing
    
    from fastapi import Body, FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    media_type = "application/vnd.api+json"
    
    
    # NOTE: These are not valid JSON:API resources
    # but they are fine for testing requestBody with custom media_type
    class Product(BaseModel):
        name: str
        price: float
    
    
    class Shop(BaseModel):
        name: str
    
    
    @app.post("/products")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  2. docs/en/docs/contributing.md

    Now you can translate it all and see how it looks as you save the file.
    
    #### New Language
    
    Let's say that you want to add translations for a language that is not yet translated, not even some pages.
    
    Let's say you want to add translations for Creole, and it's not yet there in the docs.
    
    Checking the link from above, the code for "Creole" is `ht`.
    
    The next step is to run the script to generate a new translation directory:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 17:42:43 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/response-model.md

        {!> ../../../docs_src/response_model/tutorial003_04.py!}
        ```
    
    ...this fails because the type annotation is not a Pydantic type and is not just a single `Response` class or subclass, it's a union (any of the two) between a `Response` and a `dict`.
    
    ### Disable Response Model
    
    Continuing from the example above, you might not want to have the default data validation, documentation, filtering, etc. that is performed by FastAPI.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/first-steps.md

    ### Step 1: import `FastAPI`
    
    ```Python hl_lines="1"
    {!../../../docs_src/first_steps/tutorial001.py!}
    ```
    
    `FastAPI` is a Python class that provides all the functionality for your API.
    
    !!! note "Technical Details"
        `FastAPI` is a class that inherits directly from `Starlette`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 12K bytes
    - Viewed (0)
  5. docs/em/docs/tutorial/query-params-str-validations.md

    ```Python hl_lines="7"
    {!../../../docs_src/query_params_str_validations/tutorial013.py!}
    ```
    
    !!! note
        โœ”๏ธ ๐Ÿคฏ ๐Ÿ‘ˆ ๐Ÿ‘‰ ๐Ÿ’ผ, FastAPI ๐Ÿ† ๐Ÿšซ โœ… ๐ŸŽš ๐Ÿ“‡.
    
        ๐Ÿ–ผ, `List[int]` ๐Ÿ”œ โœ… (& ๐Ÿ“„) ๐Ÿ‘ˆ ๐ŸŽš ๐Ÿ“‡ ๐Ÿ”ข. โœ‹๏ธ `list` ๐Ÿ˜ž ๐Ÿšซ๐Ÿ”œ.
    
    ## ๐Ÿ“ฃ ๐ŸŒ… ๐Ÿ—ƒ
    
    ๐Ÿ‘† ๐Ÿ’ช ๐Ÿšฎ ๐ŸŒ… โ„น ๐Ÿ”ƒ ๐Ÿ”ข.
    
    ๐Ÿ‘ˆ โ„น ๐Ÿ”œ ๐Ÿ”Œ ๐Ÿ— ๐Ÿ—„ & โš™๏ธ ๐Ÿงพ ๐Ÿ‘ฉโ€๐Ÿ’ป ๐Ÿ”ข & ๐Ÿ”ข ๐Ÿงฐ.
    
    !!! note
        โœ”๏ธ ๐Ÿคฏ ๐Ÿ‘ˆ ๐ŸŽ ๐Ÿงฐ 5๏ธโƒฃ๐Ÿ“† โœ”๏ธ ๐ŸŽ ๐ŸŽš ๐Ÿ—„ ๐Ÿ•โ€๐Ÿฆบ.
    
        ๐Ÿ‘ซ ๐Ÿ’ช ๐Ÿšซ ๐ŸŽฆ ๐ŸŒ โž• โ„น ๐Ÿ“ฃ, ๐Ÿ‘ ๐ŸŒ… ๐Ÿ’ผ, โŒ โš’ โช ๐Ÿ“„ ๐Ÿ› ๏ธ.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  6. docs/em/docs/advanced/nosql-databases.md

    ๐Ÿ‘‰ ๐Ÿ”œ โœ”๏ธ ๐Ÿ’ฝ ๐Ÿ‘ˆ ๐Ÿค™ ๐Ÿช ๐Ÿ’ฝ.
    
    ๐Ÿ‘ฅ ๐Ÿšซ โœ โšซ๏ธ ๐Ÿฟ Pydantic `BaseModel` โœ‹๏ธ ๐Ÿฟ ๐Ÿ‘† ๐Ÿ‘ `User`, โ†ฉ๏ธ โšซ๏ธ ๐Ÿ”œ โœ”๏ธ ๐ŸŒ ๐Ÿ”ข `User` โž• ๐Ÿ‘ฉโ€โคโ€๐Ÿ‘จ ๐ŸŒ…:
    
    ```Python hl_lines="31-33"
    {!../../../docs_src/nosql_databases/tutorial001.py!}
    ```
    
    !!! note
        ๐Ÿ‘€ ๐Ÿ‘ˆ ๐Ÿ‘ฅ โœ”๏ธ `hashed_password` & `type` ๐Ÿ‘ ๐Ÿ‘ˆ ๐Ÿ”œ ๐Ÿช ๐Ÿ’ฝ.
    
        โœ‹๏ธ โšซ๏ธ ๐Ÿšซ ๐Ÿ• ๐Ÿข `User` ๐Ÿท (1๏ธโƒฃ ๐Ÿ‘ฅ ๐Ÿ”œ ๐Ÿ“จ *โžก ๐Ÿ› ๏ธ*).
    
    ## ๐Ÿคš ๐Ÿ‘ฉโ€๐Ÿ’ป
    
    ๐Ÿ”œ โœ ๐Ÿ”ข ๐Ÿ‘ˆ ๐Ÿ”œ:
    
    * โœŠ ๐Ÿ†”.
    * ๐Ÿ— ๐Ÿ“„ ๐Ÿ†” โšช๏ธโžก๏ธ โšซ๏ธ.
    * ๐Ÿคš ๐Ÿ“„ โฎ๏ธ ๐Ÿ‘ˆ ๐Ÿ†”.
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  7. docs/ja/docs/deployment/concepts.md

    ๆฌกใฎ็ซ ใงใฏใ€FastAPIใ‚ขใƒ—ใƒชใ‚ฑใƒผใ‚ทใƒงใƒณใ‚’ใƒ‡ใƒ—ใƒญใ‚คใ™ใ‚‹ใŸใ‚ใฎ**ๅ…ทไฝ“็š„ใชใƒฌใ‚ทใƒ”**ใ‚’็ดนไป‹ใ—ใพใ™ใ€‚
    
    ใ—ใ‹ใ—ใ€ไปŠใฏใ“ใ‚Œใ‚‰ใฎ้‡่ฆใช**ใ‚ณใƒณใ‚ปใƒ—ใƒˆใซๅŸบใฅใใ‚ขใ‚คใƒ‡ใ‚ข**ใ‚’็ขบ่ชใ—ใพใ—ใ‚‡ใ†ใ€‚ใ“ใ‚Œใ‚‰ใฎใ‚ณใƒณใ‚ปใƒ—ใƒˆใฏใ€ไป–ใฎใฉใฎใ‚ฟใ‚คใƒ—ใฎWeb APIใซใ‚‚ๅฝ“ใฆใฏใพใ‚Šใพใ™ใ€‚๐Ÿ’ก
    
    ## ใ‚ปใ‚ญใƒฅใƒชใƒ†ใ‚ฃ - HTTPS
    
    <!-- NOTE: https.md written in Japanese does not exist, so it redirects to English one  -->
    [ๅ‰ใƒใƒฃใƒ—ใ‚ฟใƒผใฎHTTPSใซใคใ„ใฆ](https.md){.internal-link target=_blank}ใงใฏใ€HTTPSใŒใฉใฎใ‚ˆใ†ใซAPIใ‚’ๆš—ๅทๅŒ–ใ™ใ‚‹ใฎใ‹ใซใคใ„ใฆๅญฆใณใพใ—ใŸใ€‚
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 24.1K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/body-fields.md

    ## Importe `Field`
    
    Primeiro, vocรช tem que importรก-lo:
    
    ```Python hl_lines="4"
    {!../../../docs_src/body_fields/tutorial001.py!}
    ```
    
    !!! warning "Aviso"
        Note que `Field` รฉ importado diretamente do `pydantic`, nรฃo do `fastapi` como todo o resto (`Query`, `Path`, `Body`, etc).
    
    ## Declare atributos do modelo
    
    Vocรช pode entรฃo utilizar `Field` com atributos do modelo:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 02 15:00:11 GMT 2021
    - 2.2K bytes
    - Viewed (0)
  9. docs/em/docs/tutorial/response-status-code.md

    โšซ๏ธ ๐Ÿ”œ:
    
    * ๐Ÿ“จ ๐Ÿ‘ˆ ๐Ÿ‘” ๐Ÿ“Ÿ ๐Ÿ“จ.
    * ๐Ÿ“„ โšซ๏ธ โœ… ๐Ÿ—„ ๐Ÿ”— ( &amp; , ๐Ÿ‘ฉโ€๐Ÿ’ป ๐Ÿ”ข):
    
    <img src="/img/tutorial/response-status-code/image01.png">
    
    !!! note
        ๐Ÿ“จ ๐Ÿ“Ÿ (๐Ÿ‘€ โญ ๐Ÿ“„) ๐ŸŽฆ ๐Ÿ‘ˆ ๐Ÿ“จ ๐Ÿ”จ ๐Ÿšซ โœ”๏ธ ๐Ÿ’ช.
    
        FastAPI ๐Ÿ’ญ ๐Ÿ‘‰, &amp; ๐Ÿ”œ ๐Ÿญ ๐Ÿ—„ ๐Ÿฉบ ๐Ÿ‘ˆ ๐Ÿ‡ต๐Ÿ‡ธ ๐Ÿ“ค ๐Ÿ™…โ€โ™‚ ๐Ÿ“จ ๐Ÿ’ช.
    
    ## ๐Ÿ”ƒ ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ” ๐Ÿ‘” ๐Ÿ“Ÿ
    
    !!! note
        ๐Ÿšฅ ๐Ÿ‘† โช ๐Ÿ’ญ โšซ๏ธโ” ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ” ๐Ÿ‘” ๐Ÿ“Ÿ, ๐Ÿšถ โญ ๐Ÿ“„.
    
    ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ”, ๐Ÿ‘† ๐Ÿ“จ ๐Ÿ”ข ๐Ÿ‘” ๐Ÿ“Ÿ 3๏ธโƒฃ 9๏ธโƒฃ ๐Ÿ• ๐Ÿ“จ.
    
    ๐Ÿ‘ซ ๐Ÿ‘” ๐Ÿ“Ÿ โœ”๏ธ ๐Ÿ“› ๐Ÿ”— ๐Ÿค” ๐Ÿ‘ซ, โœ‹๏ธ โš  ๐Ÿ• ๐Ÿ”ข.
    
    ๐Ÿ“:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  10. fastapi/security/http.py

            scheme, credentials = get_authorization_scheme_param(authorization)
            if not (authorization and scheme and credentials):
                if self.auto_error:
                    raise HTTPException(
                        status_code=HTTP_403_FORBIDDEN, detail="Not authenticated"
                    )
                else:
                    return None
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Apr 19 15:29:38 GMT 2024
    - 13.2K bytes
    - Viewed (0)
Back to top