-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjson_schema.txt
110 lines (101 loc) · 2.05 KB
/
json_schema.txt
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
Example responses:
########################################################
/user/<username>
{
"messages": [
{
"text": "KfiMxhTOyRxHD3F9JUV0BZ8SDTyalWqFS2tKL8A5msCTJKJ9NC4WPZCvFuPdGM6TDBt5MSpTrHQaMSGRz1TXEsNcmvIKlqXXSjWSUKJwYCAxFNzLDNcTxHtBkJAnawPNAiVfM0STLwCJ",
"pub_date": [
"2013-05-08",
"07:59:13"
],
"message_id": 98,
"user_id": 3
},
{
"text": "EfIugWQFEKXWZzi0CZmWDxquW5AuWpiDQREUNN4tjKT87UX1DONQTFDEwG6MTTKlQQQNVz3ZEQfh61nSOYDEgQRTH9ik9xSafyRKgDK8VPmNhKzYCLEeA6ZnQX8GAWBDdQQjMlrmYrKO",
"pub_date": [
"2013-05-08",
"07:59:06"
],
"message_id": 4,
"user_id": 2
}
]
}
{
"message": "User user1 not found"
}
{
"message": ""Search must be less than 140 characters""
}
########################################################
/user/<username>/followers
{
"its_followers": [
{
"username": "user8",
"id": 8
}
]
}
{
"message": "User user2 not found"
}
{
"message": "No one is following user2"
}
########################################################
/user/<username>/following
{
"user_is_following": [
{
"username": "user3",
"id": 3
},
{
"username": "user4",
"id": 4
}
]
}
{
"message": "user2 is following no one."
}
{
"message": "User user2 not found"
}
########################################################
/user/<username>/follow
{
"message": "User user2 not found"
}
{
"message": "You can't follow yourself"
}
{
"message": "A user with that token doesn't exist anymore: 9f1a7e2e3e91db0ee09ba2325d3207073287db7c"
}
{
"message": "You can't follow user2"
}
{
"message": "user9 started following: user2"
}
########################################################
/user/<username>/follow
{
"message": "User user2 not found"
}
{
"message": "You can't unfollow yourself"
}
{
"message": "A user with that token doesn't exist anymore: 9f1a7e2e3e91db0ee09ba2325d3207073287db7c"
}
{
"message": "You can't unfollow user2"
}
{
"message": "user9 is now not following: user2"
}