Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1501 - 1510 of 1,977 for Fastapi (0.06 sec)

  1. docs/en/docs/reference/encoders.md

    # Encoders - `jsonable_encoder`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 18 12:36:40 UTC 2023
    - 71 bytes
    - Viewed (0)
  2. docs/de/docs/about/index.md

    # รœber
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Jan 23 11:22:17 UTC 2024
    - 70 bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/body.md

    * ๐Ÿšฅ ๐Ÿ”ข ๐Ÿ“ฃ **โžก**, โšซ๏ธ ๐Ÿ”œ โš™๏ธ โžก ๐Ÿ”ข.
    * ๐Ÿšฅ ๐Ÿ”ข **โญ ๐Ÿ†Ž** (๐Ÿ’– `int`, `float`, `str`, `bool`, โ™’๏ธ) โšซ๏ธ ๐Ÿ”œ ๐Ÿ”ฌ **๐Ÿ”ข** ๐Ÿ”ข.
    * ๐Ÿšฅ ๐Ÿ”ข ๐Ÿ“ฃ ๐Ÿ†Ž **Pydantic ๐Ÿท**, โšซ๏ธ ๐Ÿ”œ ๐Ÿ”ฌ ๐Ÿ“จ **๐Ÿ’ช**.
    
    /// note
    
    FastAPI ๐Ÿ”œ ๐Ÿ’ญ ๐Ÿ‘ˆ ๐Ÿ’ฒ `q` ๐Ÿšซ โœ” โ†ฉ๏ธ ๐Ÿ”ข ๐Ÿ’ฒ `= None`.
    
     `Union` `Union[str, None]` ๐Ÿšซ โš™๏ธ FastAPI, โœ‹๏ธ ๐Ÿ”œ โœ” ๐Ÿ‘† ๐Ÿ‘จโ€๐ŸŽจ ๐Ÿค ๐Ÿ‘† ๐Ÿ‘ ๐Ÿ•โ€๐Ÿฆบ & ๐Ÿ” โŒ.
    
    ///
    
    ## ๐Ÿต Pydantic
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. docs/pt/docs/about/index.md

    # Sobre
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 04 14:20:02 UTC 2024
    - 74 bytes
    - Viewed (0)
  5. docs/em/docs/advanced/advanced-dependencies.md

    {!../../docs_src/dependencies/tutorial011.py!}
    ```
    
    ๐Ÿ‘‰ ๐Ÿ’ผ, ๐Ÿ‘‰ `__call__` โšซ๏ธโ” **FastAPI** ๐Ÿ”œ โš™๏ธ โœ… ๐ŸŒ– ๐Ÿ”ข & ๐ŸŽง-๐Ÿ”—, & ๐Ÿ‘‰ โšซ๏ธโ” ๐Ÿ”œ ๐Ÿค™ ๐Ÿšถโ€โ™€๏ธ ๐Ÿ’ฒ ๐Ÿ”ข ๐Ÿ‘† *โžก ๐Ÿ› ๏ธ ๐Ÿ”ข* โช.
    
    ## ๐Ÿ”— ๐Ÿ‘
    
    & ๐Ÿ”œ, ๐Ÿ‘ฅ ๐Ÿ’ช โš™๏ธ `__init__` ๐Ÿ“ฃ ๐Ÿ”ข ๐Ÿ‘ ๐Ÿ‘ˆ ๐Ÿ‘ฅ ๐Ÿ’ช โš™๏ธ "๐Ÿ”—" ๐Ÿ”—:
    
    ```Python hl_lines="7"
    {!../../docs_src/dependencies/tutorial011.py!}
    ```
    
    ๐Ÿ‘‰ ๐Ÿ’ผ, **FastAPI** ๐Ÿ† ๐Ÿšซ โฑ ๐Ÿ‘† โš–๏ธ ๐Ÿ’… ๐Ÿ”ƒ `__init__`, ๐Ÿ‘ฅ ๐Ÿ”œ โš™๏ธ โšซ๏ธ ๐Ÿ”— ๐Ÿ‘† ๐Ÿ“Ÿ.
    
    ## โœ ๐Ÿ‘
    
    ๐Ÿ‘ฅ ๐Ÿ’ช โœ ๐Ÿ‘ ๐Ÿ‘‰ ๐ŸŽ“ โฎ๏ธ:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. docs_src/sql_databases/tutorial002.py

    from typing import List, Union
    
    from fastapi import Depends, FastAPI, HTTPException, Query
    from sqlmodel import Field, Session, SQLModel, create_engine, select
    
    
    class HeroBase(SQLModel):
        name: str = Field(index=True)
        age: Union[int, None] = Field(default=None, index=True)
    
    
    class Hero(HeroBase, table=True):
        id: Union[int, None] = Field(default=None, primary_key=True)
        secret_name: str
    
    
    class HeroPublic(HeroBase):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. docs_src/sql_databases/tutorial002_an_py310.py

    from typing import Annotated
    
    from fastapi import Depends, FastAPI, HTTPException, Query
    from sqlmodel import Field, Session, SQLModel, create_engine, select
    
    
    class HeroBase(SQLModel):
        name: str = Field(index=True)
        age: int | None = Field(default=None, index=True)
    
    
    class Hero(HeroBase, table=True):
        id: int | None = Field(default=None, primary_key=True)
        secret_name: str
    
    
    class HeroPublic(HeroBase):
        id: int
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/static-files.md

    ```Python hl_lines="2  6"
    {!../../docs_src/static_files/tutorial001.py!}
    ```
    
    /// note | "ๆŠ€ๆœฏ็ป†่Š‚"
    
    ไฝ ไนŸๅฏไปฅ็”จ `from starlette.staticfiles import StaticFiles`ใ€‚
    
    **FastAPI** ๆไพ›ไบ†ๅ’Œ `starlette.staticfiles` ็›ธๅŒ็š„ `fastapi.staticfiles` ๏ผŒๅชๆ˜ฏไธบไบ†ๆ–นไพฟไฝ ๏ผŒๅผ€ๅ‘่€…ใ€‚ไฝ†ๅฎƒ็กฎๅฎžๆฅ่‡ชStarletteใ€‚
    
    ///
    
    ### ไป€ไนˆๆ˜ฏ"ๆŒ‚่ฝฝ"(Mounting)
    
    "ๆŒ‚่ฝฝ" ่กจ็คบๅœจ็‰นๅฎš่ทฏๅพ„ๆทปๅŠ ไธ€ไธชๅฎŒๅ…จ"็‹ฌ็ซ‹็š„"ๅบ”็”จ๏ผŒ็„ถๅŽ่ดŸ่ดฃๅค„็†ๆ‰€ๆœ‰ๅญ่ทฏๅพ„ใ€‚
    
    ่ฟ™ไธŽไฝฟ็”จ`APIRouter`ไธๅŒ๏ผŒๅ› ไธบๅฎ‰่ฃ…็š„ๅบ”็”จ็จ‹ๅบๆ˜ฏๅฎŒๅ…จ็‹ฌ็ซ‹็š„ใ€‚OpenAPIๅ’Œๆฅ่‡ชไฝ ไธปๅบ”็”จ็š„ๆ–‡ๆกฃไธไผšๅŒ…ๅซๅทฒๆŒ‚่ฝฝๅบ”็”จ็š„ไปปไฝ•ไธœ่ฅฟ็ญ‰็ญ‰ใ€‚
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_dataclasses/test_tutorial001.py

    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    from docs_src.dataclasses.tutorial001 import app
    
    client = TestClient(app)
    
    
    def test_post_item():
        response = client.post("/items/", json={"name": "Foo", "price": 3})
        assert response.status_code == 200
        assert response.json() == {
            "name": "Foo",
            "price": 3,
            "description": None,
            "tax": None,
        }
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_dependencies/test_tutorial004.py

    import pytest
    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    from docs_src.dependencies.tutorial004 import app
    
    client = TestClient(app)
    
    
    @pytest.mark.parametrize(
        "path,expected_status,expected_response",
        [
            (
                "/items",
                200,
                {
                    "items": [
                        {"item_name": "Foo"},
                        {"item_name": "Bar"},
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 5.4K bytes
    - Viewed (0)
Back to top