-
Notifications
You must be signed in to change notification settings - Fork 0
/
api
158 lines (87 loc) · 2.96 KB
/
api
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
COMMON PROTOCOL
successful response http status code : 200
failure response http status code : 4xx or 5xx
error : [text]
readable_error : [text]
def 'member' type id : [string]
name : [string]
period_number : [integer number]
phone_number : [string]
cs_attendance : [integer number], [optional]
mentor : 'member', [optional]
mentees : [array of 'member'], [optional]
profile_url : [url string], [optional]
GET /member/list extends COMMON PROTOCOL
successful response list : [array of 'member']
GET /member/:member_id extends COMMON PROTOCOL
successful response 'member'
DELETE /member/:member_id extends COMMON PROTOCOL
POST /admin/register extends COMMON PROTOCOL
body name : [string]
password : [string]
period_number : [integer number]
phone_number : [string]
admin : [boolean]
//image : [???]
POST /admin/nominate_mentor extends COMMON PROTOCOL
body mentor_id : [string]
mentee_id : [string]
POST /admin/meeting
body attendees : [array of string]
date : [time]
desc : [string]
POST /auth/session extends COMMON PROTOCOL
body name
password
successful response session_token : [string]
first_connection : [boolean]
you : 'member'
PUT /auth/change_password extends COMMON PROTOCOL
param session_token : [string]
body new_password : [string]
DELETE /auth/unregister extends COMMON PROTOCOL
param session_token : [string]
PUT /auth/change_profile_url extends COMMON PROTOCOL
param session_token : [string]
body new_profile_url : [string]
GET /rank/neigong extends COMMON PROTOCOL
succeeful response list : [array of 'member'] length 10
GET /rank/cs_attendance extends COMMON PROTOCOL (means consecutive attendance)
successful response list : [array of 'member'] length 10
GET /notice/today extends COMMON PROTOCOL
successful response word : [string]
PUT /notice/word extends COMMON PROTOCOL
param session_token : [string]
body word : [string]
POST /files/upload extends COMMON PROTOCOL
param session_token : [string]
successful response id : [string]
GET /files/:id extends COMMON PROTOCOL
successful response [binary]
POST /tabom/token extends COMMON PROTOCOL
succeesful response token : [string]
GET /tabom/recommend/:token COMMON PROTOCOL
browser api
GET /tabom/recommend/:token/status/image
browser api
[working....]
---------------------------
GET /quest/open
succeeful response http status code : 200
list : [array of 'quest']
failure response http status code : 4xx or 5xx
error : [text]
readable_error : [text]
'quest' format id : [string]
by : 'opener'
title : [string]
'opener' format type : [string]
'member' type 'opener' format name : [string]
period_number : [integer number]
'quest' example id : "123918fasd8fc91923"
by :
type : "member"
name : "서병기"
period_number : 4
----------------------------
POST /quest/