- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for gunakan (0.63 sec)
-
docs/id/docs/index.md
@app.get("/items/{item_id}") def read_item(item_id: int, q: Union[str, None] = None): return {"item_id": item_id, "q": q} ``` <details markdown="1"> <summary>Atau gunakan <code>async def</code>...</summary> Jika kode anda menggunakan `async` / `await`, gunakan `async def`: ```Python hl_lines="9 14" from typing import Union from fastapi import FastAPI app = FastAPI() @app.get("/")
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 10:49:48 UTC 2025 - 20.5K bytes - Viewed (0) -
docs/id/docs/tutorial/first-steps.md
Pada kondisi ini, dekorator ini memberi tahu **FastAPI** bahwa fungsi di bawah nya berhubungan dengan **path** `/` dengan **operasi** `get`. Sehingga disebut **dekorator operasi path**. /// Operasi lainnya yang bisa digunakan: * `@app.post()` * `@app.put()` * `@app.delete()` Dan operasi unik lainnya: * `@app.options()` * `@app.head()` * `@app.patch()` * `@app.trace()` /// tip | Tips
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Thu Dec 12 21:46:36 UTC 2024 - 12K bytes - Viewed (0)