-
Notifications
You must be signed in to change notification settings - Fork 3
/
api.html
executable file
·64 lines (60 loc) · 1.92 KB
/
api.html
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
<!DOCTYPE html>
<html>
<head>
<title> API Documentation </title>
</head>
<body>
<h2>DISCLAIMER</h2>
<p> The extracted reputation is only an estimate (with a ~10% error). The following rules are not considered:
<ul>
<li> <i> Suggested edit is accepted: </i> +2 (up to +1000 total per user) </li>
<li> <i> Bounty awarded to your answer: </i> + full bounty amount </li>
<li> <i> One of your answers is awarded a bounty automatically: </i> + half of the bounty amount (see more details about how bounties work) </li>
<li> <i> Example you contributed to is voted up: </i> +5 </li>
<li> <i> Proposed change is approved: </i> +2 </li>
<li> <i> First time an answer that cites documentation you contributed to is upvoted: </i> +5 </li>
<li> <i> You place a bounty on a question: </i> - full bounty amount </li>
<li> <i> One of your posts receives 6 spam or offensive flags: </i> -100 </li>
</ul>
</p>
<p>
<h3> Get Reputation </h3>
<code> GET /StackOverflowRESTfulWebService/api/StackOverflow/getReputation/:userId/:date </code>
<br> After entering <code> userId </code> and <code> date </code>, there will be returned the following results: user id, user's display name, estimated reputation, time elapsed.
<h3> Parameters </h3>
<table border = "1">
<thead>
<tr>
<th> Name </th>
<th> Type </th>
<th> Description </th>
</tr>
</thead>
<tbody>
<tr>
<td> <code> userId </code> </td>
<td> <code> string </code> </td>
<td> The id associated with the user </td>
</tr>
<tr>
<td> <code> date </code> </td>
<td> <code> string </code> </td>
<td> Date which reputation refers </td>
</tr>
</tbody>
</table>
</p>
<p>
<h3> Response </h3>
<code> Status: 200 OK
<br>
{
<br> "id":"6",
<br> "name":"wax eagle",
<br> "reputation":"2702",
<br> "time":"0 days, 0 hours, 0 minutes, 20 seconds"
<br>
}
</code>
</body>
</html>