Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for origin (0.65 sec)

  1. fastapi/_compat.py

            return True
        origin = get_origin(annotation)
        if origin is Union or origin is UnionType:
            for arg in get_args(annotation):
                if lenient_issubclass(arg, UploadFile):
                    return True
        return False
    
    
    def is_bytes_sequence_annotation(annotation: Any) -> bool:
        origin = get_origin(annotation)
        if origin is Union or origin is UnionType:
            at_least_one = False
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  2. tests/test_application.py

        assert response.status_code == 200, response.text
        assert response.headers["content-type"] == "text/html; charset=utf-8"
        assert "swagger-ui-dist" in response.text
        assert (
            "oauth2RedirectUrl: window.location.origin + '/docs/oauth2-redirect'"
            in response.text
        )
    
    
    def test_swagger_ui_oauth2_redirect():
        response = client.get("/docs/oauth2-redirect")
        assert response.status_code == 200, response.text
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 52.2K bytes
    - Viewed (0)
  3. fastapi/utils.py

        original_type = field.type_
        if is_dataclass(original_type) and hasattr(original_type, "__pydantic_model__"):
            original_type = original_type.__pydantic_model__
        use_type = original_type
        if lenient_issubclass(original_type, BaseModel):
            original_type = cast(Type[BaseModel], original_type)
            use_type = cloned_types.get(original_type)
            if use_type is None:
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/behind-a-proxy.md

    In this case, the original path `/app` would actually be served at `/api/v1/app`.
    
    Even though all your code is written assuming there's just `/app`.
    
    ```Python hl_lines="6"
    {!../../../docs_src/behind_a_proxy/tutorial001.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 11.6K bytes
    - Viewed (2)
  5. docs/en/docs/release-notes.md

    * 🌐 Add Korean translation for Tutorial - First Steps. PR [#2323](https://github.com/tiangolo/fastapi/pull/2323) by [@hard-coders](https://github.com/hard-coders).
    * 🌐 Add Chinese translation for Tutorial - CORS (Cross-Origin Resource Sharing). PR [#2540](https://github.com/tiangolo/fastapi/pull/2540) by [@blt232018](https://github.com/blt232018).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
  6. docs/en/docs/tutorial/bigger-applications.md

    We can declare all that without having to modify the original `APIRouter` by passing those parameters to `app.include_router()`:
    
    ```Python hl_lines="14-17" title="app/main.py"
    {!../../../docs_src/bigger_applications/app/main.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/sql-databases.md

    πŸ–Ό πŸŽ“ `Pet` πŸ’ͺ 🎨 πŸ—„ πŸ“ `pets`.
    
    & πŸ”  *πŸ‘* 🎚 πŸ‘ˆ πŸŽ“ 🎨 ⏭ πŸ’½.
    
    πŸ–Ό 🎚 `orion_cat` (πŸ‘ `Pet`) πŸ’ͺ βœ”οΈ πŸ”’ `orion_cat.type`, πŸ“ `type`. & πŸ’² πŸ‘ˆ πŸ”’ πŸ’ͺ, βœ… `"cat"`.
    
    πŸ‘« 🐜 βœ”οΈ 🧰 βš’ πŸ”— βš–οΈ πŸ”— πŸ–– πŸ“ βš–οΈ πŸ‘¨β€πŸ’Ό.
    
    πŸ‘‰ 🌌, πŸ‘† πŸ’ͺ βœ”οΈ πŸ”’ `orion_cat.owner` & πŸ‘¨β€πŸ’Ό πŸ”œ πŸ”Œ πŸ’½ πŸ‘‰ 🐢 πŸ‘¨β€πŸ’Ό, ✊ βšͺ️➑️ πŸ“ *πŸ‘¨β€πŸ’Ό*.
    
    , `orion_cat.owner.name` πŸ’ͺ πŸ“› (βšͺ️➑️ `name` πŸ“ `owners` πŸ“) πŸ‘‰ 🐢 πŸ‘¨β€πŸ’Ό.
    
    ⚫️ πŸ’ͺ βœ”οΈ πŸ’² πŸ’– `"Arquilian"`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 25.2K bytes
    - Viewed (1)
  8. docs/fr/docs/index.md

    * D'obtenir de nombreuses fonctionnalitΓ©s supplΓ©mentaires (grΓ’ce Γ   Starlette) comme :
        * **WebSockets**
        * de tester le code très facilement avec `requests` et `pytest`
        * **<abbr title="Cross-Origin Resource Sharing">CORS</abbr>**
        * **Cookie Sessions**
        * ... et plus encore.
    
    ## Performance
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 22K bytes
    - Viewed (0)
  9. docs/en/docs/advanced/openapi-callbacks.md

    ### The callback path expression
    
    The callback *path* can have an <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.1.0.md#key-expression" class="external-link" target="_blank">OpenAPI 3 expression</a> that can contain parts of the original request sent to *your API*.
    
    In this case, it's the `str`:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  10. docs/yo/docs/index.md

    </a>
    </p>
    
    ---
    
    **Γ€kọsΓ­lαΊΉΜ€**: <a href="https://fastapi.tiangolo.com" target="_blank">https://fastapi.tiangolo.com</a>
    
    **Orisun KΓ³Γ²dΓΉ**: <a href="https://github.com/tiangolo/fastapi" target="_blank">https://github.com/tiangolo/fastapi</a>
    
    ---
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 24.1K bytes
    - Viewed (0)
Back to top