Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 366 for Dost (0.15 sec)

  1. docs_src/app_testing/app_b/main.py

            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/", response_model=Item)
    async def create_item(item: Item, x_token: str = Header()):
        if x_token != fake_secret_token:
            raise HTTPException(status_code=400, detail="Invalid X-Token header")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 09 14:44:08 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/response-status-code.md

    # ðŸ“Ļ 👔 📟
    
    🎏 🌌 👆 💊 ✔ ðŸ“Ļ 🏷, 👆 💊 ðŸ“Ģ 🇚ðŸ‡ļ🔍 👔 📟 ⚙ïļ ðŸ“Ļ âŪïļ ðŸ”Ē `status_code` 🙆 *➡ 🛠ïļ*:
    
    * `@app.get()`
    * `@app.post()`
    * `@app.put()`
    * `@app.delete()`
    * ♒ïļ.
    
    ```Python hl_lines="6"
    {!../../../docs_src/response_status_code/tutorial001.py!}
    ```
    
    !!! note
        👀 👈 `status_code` ðŸ”Ē "ðŸ‘Ļ‍ðŸŽĻ" ðŸ‘Đ‍🔎 (`get`, `post`, ♒ïļ). ðŸšŦ 👆 *➡ 🛠ïļ ðŸ”Ē*, 💖 🌐 ðŸ”Ē & 💊.
    
    `status_code` ðŸ”Ē ðŸ“Ļ ðŸ”Ē âŪïļ 🇚ðŸ‡ļ🔍 👔 📟.
    
    !!! info
    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)
  3. fastapi/utils.py

            )
        new_field.validators = field.validators  # type: ignore[attr-defined]
        new_field.pre_validators = field.pre_validators  # type: ignore[attr-defined]
        new_field.post_validators = field.post_validators  # type: ignore[attr-defined]
        new_field.parse_json = field.parse_json  # type: ignore[attr-defined]
        new_field.shape = field.shape  # type: ignore[attr-defined]
    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_src/security/tutorial003_an_py39.py

        current_user: Annotated[User, Depends(get_current_user)],
    ):
        if current_user.disabled:
            raise HTTPException(status_code=400, detail="Inactive user")
        return current_user
    
    
    @app.post("/token")
    async def login(form_data: Annotated[OAuth2PasswordRequestForm, Depends()]):
        user_dict = fake_users_db.get(form_data.username)
        if not user_dict:
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_schema_extra_example/test_tutorial001_pv1.py

    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.schema_extra_example.tutorial001_pv1 import app
    
        client = TestClient(app)
        return client
    
    
    @needs_pydanticv1
    def test_post_body_example(client: TestClient):
        response = client.put(
            "/items/5",
            json={
                "name": "Foo",
                "description": "A very nice Item",
                "price": 35.4,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  6. docs/en/docs/benchmarks.md

    Specifically, to see Uvicorn, Starlette and FastAPI compared together (among many other tools).
    
    The simpler the problem solved by the tool, the better performance it will get. And most of the benchmarks don't test the additional features provided by the tool.
    
    The hierarchy is like:
    
    * **Uvicorn**: an ASGI server
        * **Starlette**: (uses Uvicorn) a web microframework
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/request-files.md

        ðŸšĨ 👆 💚 ✍ 🌖 🔃 👉 ðŸ”Ē &amp; ðŸ“Ļ 🏑, ðŸ‘ģ <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST" class="external-link" target="_blank"><abbr title="Mozilla Developer Network">🏇</abbr> ðŸ•ļ ðŸĐš <code>POST</code></a>.
    
    !!! warning
        👆 💊 ðŸ“Ģ 💗 `File` &amp; `Form` ðŸ”Ē *➡ 🛠ïļ*, ✋ïļ 👆 💊 ðŸšŦ ðŸ“Ģ `Body` 🏑 👈 👆 ⌛ ðŸ“Ļ ðŸŽŧ, ðŸ“Ļ 🔜 ✔ïļ 💊 🗜 ⚙ïļ `multipart/form-data` â†Đïļ `application/json`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  8. docs/ko/docs/tutorial/request-files.md

        하ė§€ë§Œ 파ėžėī 폎í•Ļ된 ęē―ėš°, `multipart/form-data`로 ėļė―”ë”ĐëĐ니ë‹Ī. `File`ė„ ė‚ŽėšĐ하ė˜€ë‹ĪëĐī, **FastAPI**는 ëģļëŽļė˜ ė í•Đ한 ëķ€ëķ„ė—ė„œ 파ėžė„ 가ė ļė™€ė•ž 한ë‹Ī는 ęēƒė„ ėļė§€í•Đ니ë‹Ī.
    
        ėļė―”ë”Đęģž 폞 필드ė— 대í•ī 더 ė•Œęģ ė‹ķë‹ĪëĐī, <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST" class="external-link" target="_blank"><code>POST</code>ė— ęī€í•œ<abbr title="Mozilla Developer Network">MDN</abbr>ė›đ ëŽļė„œ</a> ëĨž ė°ļęģ í•˜ęļ° 바랍니ë‹Ī,.
    
    !!! warning "ęē―ęģ "
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_schema_extra_example/test_tutorial004_an_py310.py

        from docs_src.schema_extra_example.tutorial004_an_py310 import app
    
        client = TestClient(app)
        return client
    
    
    # Test required and embedded body parameters with no bodies sent
    @needs_py310
    def test_post_body_example(client: TestClient):
        response = client.put(
            "/items/5",
            json={
                "name": "Foo",
                "description": "A very nice Item",
                "price": 35.4,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_schema_extra_example/test_tutorial005_an.py

    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.schema_extra_example.tutorial005_an import app
    
        client = TestClient(app)
        return client
    
    
    def test_post_body_example(client: TestClient):
        response = client.put(
            "/items/5",
            json={
                "name": "Foo",
                "description": "A very nice Item",
                "price": 35.4,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Aug 26 18:03:13 GMT 2023
    - 6.7K bytes
    - Viewed (0)
Back to top