diff --git a/docs/ka/docs/index.md b/docs/ka/docs/index.md index 9c74e4aae..33b3c0c01 100644 --- a/docs/ka/docs/index.md +++ b/docs/ka/docs/index.md @@ -164,10 +164,13 @@ $ pip install fastapi ## Example +## მაგალითი ### Create it +### შევქმნათ * Create a file `main.py` with: +* შექმენით `main.py` ფაილი შემდეგი შიგთავსით: ```Python from typing import Union @@ -189,8 +192,10 @@ def read_item(item_id: int, q: Union[str, None] = None):
Or use async def... +ან გამოიყენეთ async def... If your code uses `async` / `await`, use `async def`: +თუკი თქვენი კოდი იყენებს `async` / `await`-ს, გამოიყენეთ `async def`: ```Python hl_lines="9 14" from typing import Union @@ -211,14 +216,18 @@ async def read_item(item_id: int, q: Union[str, None] = None): ``` **Note**: +**შენიშვნა**: If you don't know, check the _"In a hurry?"_ section about `async` and `await` in the docs. +თუკი ჯერ არ ერკვევით აღნიშნულ საკითხში, `async`-ისა და `await`-ის შესახებ დოკუმენტაციაში თვალი გადაავლეთ განყოფილებას _„გეჩქარებათ?“_.
### Run it +### გავუშვათ Run the server with: +გაუშვით სერვერი შემდეგი ბრძანებით: