Skip to content

Commit

Permalink
Update API.md
Browse files Browse the repository at this point in the history
add some fields,  content and type
  • Loading branch information
zhangrenyang authored Dec 27, 2020
1 parent 68b8a22 commit c617a7f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/requirements/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ GET /api/questions
|:----|:----|:----|
|id|整数|每日一题ID|
|name|字符串|题目名称|
|type|字符串|题目类型,目前有两种,md和js|
|content|字符串|题目内容|
|publish_date|日期|发布时间|

示例
Expand Down Expand Up @@ -97,6 +99,7 @@ GET /api/answers/:day_id
|success|布尔值|是否成功|
|subject_name|字段串|题目|
|subject_content|字符串|题目内容|
|subject_type|字符串|题目类型,目前有两种,md和js|
|refer_answer|字符串|参考答案|
|data|回答对象数组|全部回答|

Expand All @@ -121,4 +124,4 @@ GET /api/answers/:day_id
}
]
}
```
```

0 comments on commit c617a7f

Please sign in to comment.