forked from sadatakhtar/QuestionMark-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
119 lines (118 loc) · 4.29 KB
/
index.html
File metadata and controls
119 lines (118 loc) · 4.29 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Q&A API</title>
<link rel="icon" href="https://raw.githubusercontent.com/Hiba-moh/QuestionMark-UI/master/public/favicon.ico" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
</head>
<body>
<h1 style="text-align: center; margin: 2rem 0 2rem 0;">Q&A API ROUTES AND ENDPOINTS</h1>
<div style="width: 50% ; margin: auto">
<table class="table table-bordered table-dark">
<thead>
<tr>
<th>#</th>
<th scope="col">ROUTE DESCRIPTION</th>
<th scope="col">ROUTE</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td colspan="1">Login</td>
<td colspan="1">/login</td>
</tr>
<tr>
<th scope="row">2</th>
<td colspan="1">SignUp</td>
<td colspan="1">/register</td>
</tr>
<tr>
<th scope="row">3</th>
<td colspan="1">Get all questions</td>
<td colspan="1"><a href="https://question-mark-api.herokuapp.com/allquestions">/allquestions</a></td>
</tr>
<tr>
<th scope="row">4</th>
<td colspan="1">Get all answered questions</td>
<td colspan="1"><a href="https://question-mark-api.herokuapp.com/answered">/answered</a></td>
</tr>
<tr>
<th scope="row">5</th>
<td colspan="1">Get all unanswered questions</td>
<td colspan="1"><a href="https://question-mark-api.herokuapp.com/unanswered">/unanswered</a></td>
</tr>
<tr>
<th scope="row">6</th>
<td colspan="1">Get a question description by id</td>
<td colspan="1"><a href="https://question-mark-api.herokuapp.com/selectedquestionpage/67">/selectedquestionpage/:id</a></td>
</tr>
<tr>
<th scope="row">7</th>
<td colspan="1">Post a question</td>
<td colspan="1">/ask-question</td>
</tr>
<tr>
<th scope="row">8</th>
<td colspan="1">Send an email to a user</td>
<td colspan="1">/sendmail/</td>
</tr>
<th scope="row">11</th>
<td colspan="1">Post a reply to question by id</td>
<td colspan="1">/replypage</td>
</tr>
<tr>
<th scope="row">12</th>
<td colspan="1">Getting the views and likes counters</td>
<td colspan="1"><a href="https://question-mark-api.herokuapp.com/counters">/counters</a></td>
</tr>
<tr>
<th scope="row">13</th>
<td colspan="1">Update the likes</td>
<td colspan="1">/rates</td>
</tr>
<tr>
<th scope="row">14</th>
<td colspan="1">Update the views</td>
<td colspan="1">/views</td>
</tr>
<tr>
<th scope="row">15</th>
<td colspan="1">Get questions been answered by a user using (id)</td>
<td colspan="1"><a href="https://question-mark-api.herokuapp.com/userAnswers/1">/userAnswers/:id</a></td>
</tr>
<tr>
<th scope="row">16</th>
<td colspan="1">Get questions been asked by a user</td>
<td colspan="1"><a href="https://question-mark-api.herokuapp.com/userAsked/1">/userAsked/:id</a></td>
</tr>
<tr>
<th scope="row">17</th>
<td colspan="1">Delete a users’ answer by id</td>
<td colspan="1">/userAnswers/:id</td>
</tr>
<tr>
<th scope="row">18</th>
<td colspan="1">Edit a users’ answer</td>
<td colspan="1">/userAnswers/:id</td>
</tr>
<tr>
<th scope="row">19</th>
<td colspan="1">Edit a users’ question</td>
<td colspan="1">/userAsked/:id</td>
</tr>
<tr>
<th scope="row">20</th>
<td colspan="1">Add a comment to an answer</td>
<td colspan="1">/comments</td>
</tr>
<tr>
<th scope="row">21</th>
<td colspan="1">Get all the comments</td>
<td><a href="https://question-mark-api.herokuapp.com/comments">/comments</a></td>
</tr>
</tbody>
</table>
</div>
</body>
</html>