Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 281 - 290 of 1,089 for itens (0.02 seconds)

  1. docs_src/app_testing/app_b_an_py310/main.py

        "bar": {"id": "bar", "title": "Bar", "description": "The bartenders"},
    }
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        id: str
        title: str
        description: str | None = None
    
    
    @app.get("/items/{item_id}", response_model=Item)
    async def read_main(item_id: str, x_token: Annotated[str, Header()]):
        if x_token != fake_secret_token:
            raise HTTPException(status_code=400, detail="Invalid X-Token header")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 04 13:32:24 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  2. docs/es/docs/editor-support.md

    # Soporte del editor { #editor-support }
    
    La [Extensión de FastAPI](https://marketplace.visualstudio.com/items?itemName=FastAPILabs.fastapi-vscode) oficial mejora tu flujo de trabajo de desarrollo con FastAPI con descubrimiento de *path operation*, navegación, además de deployment a FastAPI Cloud y streaming en vivo de logs.
    
    Para más detalles sobre la extensión, consulta el README en el [repositorio de GitHub](https://github.com/fastapi/fastapi-vscode).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:12:26 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  3. scripts/tests/test_translation_fixer/conftest.py

        sys.platform == "win32", reason="Skipping on Windows"
    )
    
    
    THIS_DIR = Path(__file__).parent.resolve()
    
    
    def pytest_collection_modifyitems(config, items: list[pytest.Item]) -> None:
        if sys.platform != "win32":
            return
    
        for item in items:
            item_path = Path(item.fspath).resolve()
            if item_path.is_relative_to(THIS_DIR):
                item.add_marker(skip_on_windows)
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 25 10:37:59 GMT 2026
    - 1.3K bytes
    - Click Count (0)
  4. docs/ko/docs/advanced/security/oauth2-scopes.md

    이제 `/users/me/items/`에 대한 *경로 처리*가 스코프 `items`를 요구한다고 선언합니다.
    
    이를 위해 `fastapi`에서 `Security`를 import하여 사용합니다.
    
    `Security`는 (`Depends`처럼) 의존성을 선언하는 데 사용할 수 있지만, `Security`는 스코프(문자열) 목록을 받는 `scopes` 매개변수도 받습니다.
    
    이 경우, 의존성 함수 `get_current_active_user`를 `Security`에 전달합니다(`Depends`로 할 때와 같은 방식).
    
    하지만 스코프 `list`도 함께 전달합니다. 여기서는 스코프 하나만: `items`(더 많을 수도 있습니다).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 15.7K bytes
    - Click Count (0)
  5. tests/test_security_scopes_sub_dependency.py

            }
    
        app = FastAPI()
    
        @app.get("/")
        def path_operation(
            user_me: Annotated[dict, Depends(get_user_me)],
            user_items: Annotated[dict, Security(get_user_items, scopes=["items"])],
        ):
            return {
                "user_me": user_me,
                "user_items": user_items,
            }
    
        return app
    
    
    @pytest.fixture(name="client")
    def client_fixture(app: FastAPI):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  6. docs/fr/docs/tutorial/dependencies/index.md

    Par exemple, supposons que vous ayez 4 endpoints d’API (chemins d’accès) :
    
    * `/items/public/`
    * `/items/private/`
    * `/users/{user_id}/activate`
    * `/items/pro/`
    
    alors vous pourriez ajouter différentes exigences d’autorisations pour chacun d’eux uniquement avec des dépendances et des sous-dépendances :
    
    ```mermaid
    graph TB
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 11.1K bytes
    - Click Count (0)
  7. docs/ja/docs/index.md

    ### 動作確認 { #check-it }
    
    ブラウザで [http://127.0.0.1:8000/items/5?q=somequery](http://127.0.0.1:8000/items/5?q=somequery) を開きます。
    
    以下の JSON のレスポンスが確認できます。
    
    ```JSON
    {"item_id": 5, "q": "somequery"}
    ```
    
    すでに以下の API が作成されています。
    
    * _パス_ `/` と `/items/{item_id}` で HTTP リクエストを受け取ります。
    * 両方の _パス_ は `GET` 操作(HTTP _メソッド_ としても知られています)を取ります。
    * _パス_ `/items/{item_id}` は `int` であるべき _パスパラメータ_ `item_id` を持ちます。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 25.6K bytes
    - Click Count (0)
  8. docs_src/app_testing/app_b_py310/main.py

    
    @app.get("/items/{item_id}", response_model=Item)
    async def read_main(item_id: str, x_token: str = Header()):
        if x_token != fake_secret_token:
            raise HTTPException(status_code=400, detail="Invalid X-Token header")
        if item_id not in fake_db:
            raise HTTPException(status_code=404, detail="Item not found")
        return fake_db[item_id]
    
    
    @app.post("/items/")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 04 13:32:24 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  9. scripts/playwright/header_param_models/image01.py

        context = browser.new_context(viewport={"width": 960, "height": 1080})
        page = context.new_page()
        page.goto("http://localhost:8000/docs")
        page.get_by_role("button", name="GET /items/ Read Items").click()
        page.get_by_role("button", name="Try it out").click()
        # Manually add the screenshot
        page.screenshot(path="docs/en/docs/img/tutorial/header-param-models/image01.png")
    
        # ---------------------
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Sep 17 18:54:10 GMT 2024
    - 1.1K bytes
    - Click Count (0)
  10. docs/ru/docs/advanced/behind-a-proxy.md

    </div>
    
    ### Редиректы с HTTPS { #redirects-with-https }
    
    Например, вы объявили операцию пути `/items/`:
    
    {* ../../docs_src/behind_a_proxy/tutorial001_01_py310.py hl[6] *}
    
    Если клиент обратится к `/items`, по умолчанию произойдёт редирект на `/items/`.
    
    Но до установки опции `--forwarded-allow-ips` редирект может вести на `http://localhost:8000/items/`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 22.7K bytes
    - Click Count (0)
Back to Top