-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpost_params.json
40 lines (39 loc) · 951 Bytes
/
post_params.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
headers
"key":"Accept" "value":"application/json"
"key":"charset "value":"utf-8"
"key":"Content-Type "value":"application/json"
*/
[
// POST 登录 http://127.0.0.1:8080/zhiliao/login
{
"email": "[email protected]",
"username": "aaa",
"password": "aaa"
},
// POST 获取问题页 http://127.0.0.1:8080/zhiliao/question/20
{
"question": {
"questionTitle": "为什么呢?",
"questionContent": "没为什么。"
},
"topicNames": "Java,C++"
},
// GET http://127.0.0.1:8080/zhiliao/topic/listFollowingTopic
// POST http://127.0.0.1:8080/zhiliao/listTopicByTopicName
{
"topicName": "python"
},
// POST 回答问题 http://127.0.0.1:8080/zhiliao/answer
{
"answer": {
"answerContent": "这是回答!",
"questionId": "1",
"userId": "11218"
}
},
// POST 点赞回答 http://127.0.0.1:8080/zhiliao/likeAnswer unlikeAnswer
{
"answerId":"37"
}
]