Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 421 - 430 of 1,168 for item2 (0.02 seconds)

  1. tests/test_tutorial/test_header_param_models/test_tutorial001.py

            {
                "openapi": "3.1.0",
                "info": {"title": "FastAPI", "version": "0.1.0"},
                "paths": {
                    "/items/": {
                        "get": {
                            "summary": "Read Items",
                            "operationId": "read_items_items__get",
                            "parameters": [
                                {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  2. tests/test_tutorial/test_query_params_str_validations/test_tutorial014.py

        return client
    
    
    def test_hidden_query(client: TestClient):
        response = client.get("/items?hidden_query=somevalue")
        assert response.status_code == 200, response.text
        assert response.json() == {"hidden_query": "somevalue"}
    
    
    def test_no_hidden_query(client: TestClient):
        response = client.get("/items")
        assert response.status_code == 200, response.text
        assert response.json() == {"hidden_query": "Not found"}
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  3. tests/test_tutorial/test_dependencies/test_tutorial005.py

        [
            (
                "/items",
                "from_cookie",
                200,
                {"q_or_cookie": "from_cookie"},
            ),
            (
                "/items?q=foo",
                "from_cookie",
                200,
                {"q_or_cookie": "foo"},
            ),
            (
                "/items",
                None,
                200,
                {"q_or_cookie": None},
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  4. tests/test_tutorial/test_metadata/test_tutorial001.py

            "info": {
                "title": "ChimichangApp",
                "summary": "Deadpool's favorite app. Nuff said.",
                "description": "\nChimichangApp API helps you do awesome stuff. ๐Ÿš€\n\n## Items\n\nYou can **read items**.\n\n## Users\n\nYou will be able to:\n\n* **Create users** (_not implemented_).\n* **Read users** (_not implemented_).\n",
                "termsOfService": "http://example.com/terms/",
                "contact": {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  5. tests/test_tutorial/test_security/test_tutorial001.py

        return client
    
    
    def test_no_token(client: TestClient):
        response = client.get("/items")
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Not authenticated"}
        assert response.headers["WWW-Authenticate"] == "Bearer"
    
    
    def test_token(client: TestClient):
        response = client.get("/items", headers={"Authorization": "Bearer testtoken"})
        assert response.status_code == 200, response.text
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  6. docs_src/dependencies/tutorial003_py39.py

            self.q = q
            self.skip = skip
            self.limit = limit
    
    
    @app.get("/items/")
    async def read_items(commons=Depends(CommonQueryParams)):
        response = {}
        if commons.q:
            response.update({"q": commons.q})
        items = fake_items_db[commons.skip : commons.skip + commons.limit]
        response.update({"items": items})
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 635 bytes
    - Click Count (0)
  7. docs_src/dependencies/tutorial003_an_py310.py

            self.q = q
            self.skip = skip
            self.limit = limit
    
    
    @app.get("/items/")
    async def read_items(commons: Annotated[Any, Depends(CommonQueryParams)]):
        response = {}
        if commons.q:
            response.update({"q": commons.q})
        items = fake_items_db[commons.skip : commons.skip + commons.limit]
        response.update({"items": items})
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 655 bytes
    - Click Count (0)
  8. docs/ko/docs/python-types.md

    ๋Œ€๊ด„ํ˜ธ ์•ˆ์˜ ๋‚ด๋ถ€ ํƒ€์ž…์€ "ํƒ€์ž… ๋งค๊ฐœ๋ณ€์ˆ˜(type paramters)"๋ผ๊ณ  ํ•ฉ๋‹ˆ๋‹ค.
    
    ์ด๋ฒˆ ์˜ˆ์ œ์—์„œ๋Š” `str`์ด `List`์— ๋“ค์–ด๊ฐ„ ํƒ€์ž… ๋งค๊ฐœ๋ณ€์ˆ˜ ์ž…๋‹ˆ๋‹ค.
    
    ///
    
    ์ด๋Š” "`items`์€ `list`์ธ๋ฐ, ๋ฐฐ์—ด์— ๋“ค์–ด์žˆ๋Š” ์•„์ดํ…œ ๊ฐ๊ฐ์€ `str`์ด๋‹ค"๋ผ๋Š” ๋œป์ž…๋‹ˆ๋‹ค.
    
    ์ด๋ ‡๊ฒŒ ํ•จ์œผ๋กœ์จ, ์—๋””ํ„ฐ๋Š” ๋ฐฐ์—ด์— ๋“ค์–ด์žˆ๋Š” ์•„์ดํ…œ์„ ์ฒ˜๋ฆฌํ• ๋•Œ๋„ ๋„์›€์„ ์ค„ ์ˆ˜ ์žˆ๊ฒŒ ๋ฉ๋‹ˆ๋‹ค:
    
    <img src="/img/python-types/image05.png">
    
    ํƒ€์ž…์ด ์—†์œผ๋ฉด ์ด๊ฑด ๊ฑฐ์˜ ๋ถˆ๊ฐ€๋Šฅ์ด๋‚˜ ๋‹ค๋ฆ„ ์—†์Šต๋‹ˆ๋‹ค.
    
    ๋ณ€์ˆ˜ `item`์€ `items`์˜ ๊ฐœ๋ณ„ ์š”์†Œ๋ผ๋Š” ์‚ฌ์‹ค์„ ์•Œ์•„๋‘์„ธ์š”.
    
    ๊ทธ๋ฆฌ๊ณ  ์—๋””ํ„ฐ๋Š” ๊ณ„์† `str`๋ผ๋Š” ์‚ฌ์‹ค์„ ์•Œ๊ณ  ๋„์™€์ค๋‹ˆ๋‹ค.
    
    #### `Tuple`๊ณผ `Set`
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 10.2K bytes
    - Click Count (0)
  9. tests/test_forms_from_non_typing_sequences.py

    app = FastAPI()
    
    
    @app.post("/form/python-list")
    def post_form_param_list(items: list = Form()):
        return items
    
    
    @app.post("/form/python-set")
    def post_form_param_set(items: set = Form()):
        return items
    
    
    @app.post("/form/python-tuple")
    def post_form_param_tuple(items: tuple = Form()):
        return items
    
    
    client = TestClient(app)
    
    
    def test_python_list_param_as_form():
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 1.2K bytes
    - Click Count (0)
  10. docs/pt/docs/tutorial/bigger-applications.md

    * procure o subpacote `routers` (o diretรณrio em `app/routers/`)...
    * e dele, importe o submรณdulo `items` (o arquivo em `app/routers/items.py`) e `users` (o arquivo em `app/routers/users.py`)...
    
    O mรณdulo `items` terรก uma variรกvel `router` (`items.router`). Esta รฉ a mesma que criamos no arquivo `app/routers/items.py`, รฉ um objeto `APIRouter`.
    
    E entรฃo fazemos o mesmo para o mรณdulo `users`.
    
    Tambรฉm poderรญamos importรก-los como:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 20:32:40 GMT 2025
    - 19.7K bytes
    - Click Count (0)
Back to Top