-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathso.apib
152 lines (129 loc) · 5.14 KB
/
so.apib
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
FORMAT: 1A
# Simple User Support Dashboard (SUSD)
SUSD API serves unanswered questions from Stack Overflow server.
## List of questions [/api/questions/unanswered{?page,pagesize,tagged}]
+ Parameters
+ page (number, optional) - Page number.
+ Default: 1
+ pagesize (number, optional) - The maximum number of results to return.
+ Default: 20
+ tagged (string, optional) - The maximum number of results to return.
+ Default: ''
### View a Questions List [GET]
This action show serves unanswered questions sorted by last activity.
+ Request
+ Headers
Cookie: access_token=JWT
+ Response 200 (application/json)
{
"items": [
{
"tags": [
"javascript",
"function",
"if-statement",
"return"
],
"owner": {
"reputation": 1,
"user_id": 6579778,
"user_type": "registered",
"profile_image": "https://www.gravatar.com/avatar/b27332b9f9df9ae51730459757a1ab0b?s=128&d=identicon&r=PG&f=1",
"display_name": "Nicholas Rotondo",
"link": "http://stackoverflow.com/users/6579778/nicholas-rotondo"
},
"is_answered": false,
"view_count": 36,
"answer_count": 2,
"score": -5,
"last_activity_date": 1475001157,
"creation_date": 1474999795,
"last_edit_date": 1475000023,
"question_id": 39731562,
"link": "http://stackoverflow.com/questions/39731562/else-return-statement-is-shadowing-else-if-return-statement",
"title": "else return statement is shadowing else if return statement"
},
{
"tags": [
"c#",
"ssl",
"encryption",
"tcp",
"ssl-certificate"
],
"owner": {
"reputation": 17,
"user_id": 6242642,
"user_type": "registered",
"accept_rate": 100,
"profile_image": "https://www.gravatar.com/avatar/298f4d5e770dc1fca2087e981daa9054?s=128&d=identicon&r=PG&f=1",
"display_name": "sxbrentxs",
"link": "http://stackoverflow.com/users/6242642/sxbrentxs"
},
"is_answered": false,
"view_count": 10,
"answer_count": 0,
"score": -1,
"last_activity_date": 1475001154,
"creation_date": 1475000663,
"last_edit_date": 1475001154,
"question_id": 39731802,
"link": "http://stackoverflow.com/questions/39731802/encrypt-tcp-connection",
"title": "Encrypt TCP connection"
}
],
"has_more": true,
"quota_max": 300,
"quota_remaining": 187
}
## Questions [/api/questions/{id}]
+ Parameters
+ id (number) - ID of the question in the form of an integer.
### View a Questions Detail [GET]
Get the question with asked ID number.
+ Request
+ Headers
Cookie: access_token=JWT
+ Response 200 (application/json)
{
"items": [
{
"tags": [
"java",
"hibernate",
"transactions",
"jta",
"transactionmanager"
],
"owner": {
"reputation": 186,
"user_id": 2484944,
"user_type": "registered",
"profile_image": "https://www.gravatar.com/avatar/a8c12caaa4a3d33bca2381ab7e662040?s=128&d=identicon&r=PG",
"display_name": "S S",
"link": "http://stackoverflow.com/users/2484944/s-s"
},
"is_answered": false,
"view_count": 11,
"answer_count": 1,
"score": 0,
"last_activity_date": 1474983994,
"creation_date": 1474983041,
"question_id": 39726012,
"link": "http://stackoverflow.com/questions/39726012/integration-of-hibernate-transaction-in-jta-transaction-manager",
"title": "Integration of hibernate transaction in jta transaction manager",
"body": "<p>In my standalone java application, jms and hibernate are used for fulfilling my requirements. I used the JTA transaction manager for the transaction management purposes. Can i enlist the XAResource for the hibernate and jms in the jta transaction to ensure the atomicity of my application.</p>\n"
}
],
"has_more": false,
"quota_max": 300,
"quota_remaining": 188
}
## API status [/api]
The action provides information about SUSD API server.
### View a api server status [GET]
Returns status of SUSD API server.
+ Response 200 (application/json)
{
"status": "heavily idle"
}