Retrieve words from the database, based on the starting letter.
Retrieve words from the database, based on the starting letter. The starting letter is based on the first letter of the English word.
The default offset for each page is currently 10.
Query parameters
-
The starting letter of the words to be retrieved. It must be in UPPERCASE. Also, the API will return the total number of words for Frontend to calculate the number of pages.
NOTES:
- The page number is optional. If not provided, the API will return the first page.
- The page number starts from 1.
-
The pages that the user wants to retrieve.
GET
/pages
curl \
-X GET http://localhost:5000/pages?letter=A \
--cookie "fastapiusersauth=$API_KEY"
Response examples (200)
{
"total": 98765,
"words": [
{
"en": "abdominal aorta",
"en_type": "n",
"id": 1,
"vn": "động mạch chủ bụng",
"vn_type": "danh từ"
},
{
"en": "abdominal aortic aneurysm",
"en_type": "n",
"id": 2,
"vn": "phình động mạch chủ bụng",
"vn_type": "danh từ"
},
{
"en": "AEP (auditory evoked potential)",
"en_type": "n",
"id": 17,
"vn": "Viết tắt của Điện thế gợi thính giác",
"vn_type": "danh từ"
},
{
"en": "aeroallergen",
"en_type": "n",
"id": 18,
"vn": "Dị nguyên trong không khí",
"vn_type": "danh từ"
},
{
"en": "affluxion",
"en_type": "n",
"id": 19,
"vn": "Chảy dồn",
"vn_type": "danh từ"
},
{
"en": "AFib (atrial fibrillation)",
"en_type": "n",
"id": 20,
"vn": "Viết tắt của Rung nhĩ",
"vn_type": "danh từ"
},
{
"en": "AFO (ankle-foot orthosis)",
"en_type": "n",
"id": 21,
"vn": "Viết tắt của Nẹp cổ bàn chân",
"vn_type": "danh từ"
},
{
"en": "afterdischarge",
"en_type": "n",
"id": 22,
"vn": "Kích ứng lưu tồn",
"vn_type": "danh từ"
},
{
"en": "afterimpression",
"en_type": "n",
"id": 23,
"vn": "Cảm giác lưu tồn",
"vn_type": "danh từ"
},
{
"en": "aftermath",
"en_type": "n",
"id": 24,
"vn": "Hậu quả xấu",
"vn_type": "danh từ"
}
]
}