@artman328
2022-06-05T01:09:25.000000Z
字数 805
阅读 342
未分类
用户希望能够使用一款手机APP通过阅读英文幽默短文学习英文。用户可通过标题列表选择短文,可分别查看英文原文、中文译文和单词解释。
请求方法:GET
请求地址:/api/humor/titles?count_per_page=x&page=y
请求参数:
返回数据格式:
{
"doc_count": 10,
"titles": [
{
"_id": "编号"
"title": "English Title",
"chinese": "中文标题"
},
...
]
}
其中:
请求方法:GET
请求地址:/api/humor/{humor_id}
地址参数:
返回数据格式:
{
"_id": "短文编号",
"title": "English Title",
"chinese_title": "中文编号",
"content": [
"paragraph 1",
"paragraph 2",
...
],
"words":[
"word 1",
"word 2",
...
],
"chinese": [
"中文译文段落 1",
"中文译文段落 2",
...
]
}
其中: