-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocumentation
More file actions
55 lines (48 loc) · 1.64 KB
/
documentation
File metadata and controls
55 lines (48 loc) · 1.64 KB
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
/** Somnang Rean Application for questions and answers
@author: Daniel Isaac
@Date: 15th January 2020
@usage: This webservice is permitted to be used by all authorized party, read terms of service for more information.
#Functions
@GET:
1.
@getquestions
@requires-auth: no
@params: None
@link: https://hostlink/EmailAuthentication/routes/api/getquestions/
@returns: Collection of questions, paginated
2.
@getAnswers:
@requires-auth: no
@params: QuestionId
@link https://hostlink/EmailAuthentication/routes/api/{questionId}/getAnswers/
@returns: Collection of answers, paginated
@POST
1.
@signup
@params: None
@headers: Email, Password, and Password_confirmation
@link: https://hostlink/EmailAuthentication/routes/api/signup/
@returns: User model
2.
@signin
@params: None
@headers: Email, Password
@link: https://hostlink/EmailAuthentication/routes/api/signin/
@condition: -User must be activated-
@returns: User model
3.
@activate
@params: userID
@headers: None
@link: https://hostlink/EmailAuthentication/routes/api/signup/activate/{user-toker}/
@returns: html page redirect
4.
@postQuestion
@param: userId, question, category,...
@headers: userid, token
@link: TBD
@returns: TBD
5.
@answerQuestion
@param
*/