moonrope 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,166 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Welcome - API Documentation</title>
5
- <link href='https://fonts.googleapis.com/css?family=Lato:400,700,900' rel='stylesheet' type='text/css'>
6
- <link href='https://fonts.googleapis.com/css?family=Droid+Sans+Mono' rel='stylesheet' type='text/css'>
7
- <link rel="stylesheet" href="assets/reset.css">
8
- <link rel="stylesheet" href="assets/style.css">
9
- </head>
10
- <body>
11
- <section class='sidebarBackground'></section>
12
- <section class="sidebar">
13
- <nav>
14
- <ul>
15
- <li>
16
- <a href='index.html' class="active">
17
- Home
18
- </a>
19
- </li>
20
-
21
- <li>
22
- <a href='authenticators/default.html' class="">
23
- Authentication
24
- </a>
25
- </li>
26
-
27
-
28
- <li>
29
- <a href='controllers/meta.html' class="">
30
- Meta API
31
- </a>
32
- </li>
33
-
34
- <li>
35
- <a href='controllers/users.html' class="">
36
- Users API
37
- </a>
38
- </li>
39
-
40
- </ul>
41
- </nav>
42
- </section>
43
- <section class='content'>
44
-
45
-
46
- <h1>Welcome to our API documentation</h1>
47
- <p class='text'>
48
- From here you can browse the full documentation for our HTTP
49
- API. Our API is split into sections which you can browse using
50
- the menu on the right. If you have any questions, you can
51
- <a href='#'>contact our team</a> and we'll be happy to help out.
52
- </p>
53
- <p class='text'>
54
- Before you get started, take a few minutes to review the
55
- information below about how to interact with our API. It includes
56
- information about how to send requests, what response data is
57
- sent in and how to handle errors.
58
- </p>
59
-
60
- <h2>Making requests</h2>
61
- <p class='text'>
62
- Our API works over the HTTP protocol with JSON. It is implemented
63
- in an RPC-like manner and everything you can do with the API has
64
- its own <em>action</em>.
65
- </p>
66
- <p class='text'>
67
- All HTTP requests must be made over HTTPS to the URL shown on the
68
- action's page in this documentation. All responses you receive from
69
- the API will be returned in JSON. Requests should be made using the
70
- <code>POST</code> method with any parameters encoded as JSON in the
71
- body of the request.
72
- </p>
73
-
74
- <h2>Receiving responses</h2>
75
- <p class='text'>
76
- All responses will be returned to you encoded as JSON. You will always
77
- receive a hash as the response which will look like the JSON below:
78
- </p>
79
- <pre class='code'>
80
- {
81
- <span class='jsonKey'>"status"</span>:<span class='jsonString'>"success"</span>,
82
- <span class='jsonKey'>"time"</span>:<span class='jsonString'>0.123</span>,
83
- <span class='jsonKey'>"flags"</span>:{
84
- <span class='jsonComment'>... additional information about the request ...</span>
85
- },
86
- <span class='jsonKey'>"data"</span>:{
87
- <span class='jsonComment'>... the data returned from the action ...</span>
88
- }
89
- }
90
- </pre>
91
- <p class='text'>
92
- The <b>status</b> attribute will give you can indication about whether the
93
- request was performed successfully or whether an error occurred. Values which
94
- may be returned are shown below:
95
- </p>
96
- <ul class='standardList'>
97
- <li>
98
- <code>success</code> - this means that the request completed successfully
99
- and returned the data that was expected.
100
- </li>
101
- <li>
102
- <code>parameter-error</code> - the parameters provided for the action are
103
- not valid and should be revised.
104
- </li>
105
- <li>
106
- <code>error</code> - an error occurred that didn't fit into the above categories.
107
- This will be accompanied with an error code, a descriptive message and further
108
- attributes which may be useful. The actual potential errors for each action are
109
- shown in the documentation.
110
- </li>
111
- </ul>
112
- <p class='text'>
113
- The <b>time</b> attribute shows how long the request took to complete on the
114
- server side.
115
- </p>
116
- <p class='text'>
117
- The <b>flags</b> attribute contains a hash of additional attributes
118
- which are relevant to your request. For example, if you receive an array of data
119
- it may be paginated and this pagination data will be returned in this
120
- hash.
121
- </p>
122
- <p class='text'>
123
- The <b>data</b> attribute contains the result of your request. Depending on the
124
- status, this will either contain the data requested or details of any
125
- error which has occurred.
126
- </p>
127
- <h3>A note about HTTP status code</h3>
128
- <p class='text'>
129
- The API does not generally use HTTP status codes to return information
130
- about the outcome of a request. There are two supported statuses with
131
- the API:
132
- </p>
133
- <ul class='standardList'>
134
- <li>
135
- <code>200 OK</code> - This is the code you'll usually receive.
136
- It indicates that the response was successfully delivered and
137
- returned to our service (although does not nessesary mean that
138
- the action you were expecting was successful). Further status
139
- information will be provided in the <code>status</code> attribute
140
- on your response body.
141
- </li>
142
- <li>
143
- <code>301 Moved Permanently</code> or <code>308 Permanent Redirect</code> -
144
- This means that the API request should be sent to an alternative
145
- URL. This may just mean you need to send your request using <code>https</code>
146
- rather than <code>http</code> as the protocol.
147
- </li>
148
- <li>
149
- <code>500 Internal Server Error</code> - This will be returned
150
- when an error occurred within the API itself. This was not
151
- anticipated by us and should be reported to us.
152
- </li>
153
- <li>
154
- <code>503 Service Unavailable</code> - This will be returned if
155
- API is currently unavailable for maintenance or other issue.
156
- </li>
157
- </ul>
158
-
159
- </section>
160
- <footer class='footer'>
161
- <p>Generated by Moonrope at 12:43 on Monday 22 February 2016 for d3c499</p>
162
- </footer>
163
- <script src='https://code.jquery.com/jquery-1.12.0.min.js'></script>
164
- <script src='assets/try.js'></script>
165
- </body>
166
- </html>
File without changes
@@ -1,176 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Pet Structure - API Documentation</title>
5
- <link href='https://fonts.googleapis.com/css?family=Lato:400,700,900' rel='stylesheet' type='text/css'>
6
- <link href='https://fonts.googleapis.com/css?family=Droid+Sans+Mono' rel='stylesheet' type='text/css'>
7
- <link rel="stylesheet" href="../assets/reset.css">
8
- <link rel="stylesheet" href="../assets/style.css">
9
- </head>
10
- <body>
11
- <section class='sidebarBackground'></section>
12
- <section class="sidebar">
13
- <nav>
14
- <ul>
15
- <li>
16
- <a href='../index.html' class="">
17
- Home
18
- </a>
19
- </li>
20
-
21
- <li>
22
- <a href='../authenticators/default.html' class="">
23
- Authentication
24
- </a>
25
- </li>
26
-
27
-
28
- <li>
29
- <a href='../controllers/meta.html' class="">
30
- Meta API
31
- </a>
32
- </li>
33
-
34
- <li>
35
- <a href='../controllers/users.html' class="">
36
- Users API
37
- </a>
38
- </li>
39
-
40
- </ul>
41
- </nav>
42
- </section>
43
- <section class='content'>
44
-
45
-
46
- <h1>Pet Structure</h1>
47
-
48
- <h2>Base Attributes</h2>
49
- <table class='table paramTable'>
50
- <thead>
51
- <tr>
52
- <th width="45%">Attribute</th>
53
- <th width="20%">Type</th>
54
- <th width="35%">Example</th>
55
- </tr>
56
- </thead>
57
-
58
- <tr>
59
- <td>
60
- <p>
61
- <span class='paramTable__name'>id</span>
62
- </p>
63
-
64
- <p class='paramTable__description'>The ID of the pet</p>
65
-
66
-
67
-
68
-
69
- </td>
70
- <td>Integer</td>
71
- <td>
72
-
73
- 148
74
-
75
- </td>
76
- </tr>
77
-
78
- <tr>
79
- <td>
80
- <p>
81
- <span class='paramTable__name'>name</span>
82
- </p>
83
-
84
- <p class='paramTable__description'>The name of the pet</p>
85
-
86
-
87
-
88
-
89
- </td>
90
- <td>String</td>
91
- <td>
92
-
93
- Fido
94
-
95
- </td>
96
- </tr>
97
-
98
- <tr>
99
- <td>
100
- <p>
101
- <span class='paramTable__name'>color</span>
102
- </p>
103
-
104
- <p class='paramTable__description'>What color is the pet?</p>
105
-
106
-
107
-
108
-
109
- </td>
110
- <td>String</td>
111
- <td>
112
-
113
- Green
114
-
115
- </td>
116
- </tr>
117
-
118
-
119
-
120
- </table>
121
-
122
-
123
-
124
-
125
-
126
-
127
- <h2>Expansions</h2>
128
- <p class='text'>
129
- Expansions are embedded structures of other objects that are related to the structure
130
- that you're viewing. Which expansions are returned by a specific action are shown on that
131
- action's documentation however some actions allow you to choose which expansions are
132
- returned.
133
- </p>
134
- <table class='table paramTable'>
135
- <thead>
136
- <tr>
137
- <th width="45%">Attribute</th>
138
- <th width="20%">Type</th>
139
- <th width="35%">Example</th>
140
- </tr>
141
- </thead>
142
-
143
- <tr>
144
- <td>
145
- <p>
146
- <span class='paramTable__name'>user</span>
147
- </p>
148
-
149
- <p class='paramTable__description'>The user who owns this pet</p>
150
-
151
-
152
-
153
-
154
- </td>
155
- <td>Hash</td>
156
- <td>
157
-
158
- <a class='link' href="../structures/user.html">User structure</a>
159
-
160
- </td>
161
- </tr>
162
-
163
-
164
-
165
- </table>
166
-
167
-
168
-
169
- </section>
170
- <footer class='footer'>
171
- <p>Generated by Moonrope at 12:43 on Monday 22 February 2016 for d3c499</p>
172
- </footer>
173
- <script src='https://code.jquery.com/jquery-1.12.0.min.js'></script>
174
- <script src='../assets/try.js'></script>
175
- </body>
176
- </html>
@@ -1,338 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>User Structure - API Documentation</title>
5
- <link href='https://fonts.googleapis.com/css?family=Lato:400,700,900' rel='stylesheet' type='text/css'>
6
- <link href='https://fonts.googleapis.com/css?family=Droid+Sans+Mono' rel='stylesheet' type='text/css'>
7
- <link rel="stylesheet" href="../assets/reset.css">
8
- <link rel="stylesheet" href="../assets/style.css">
9
- </head>
10
- <body>
11
- <section class='sidebarBackground'></section>
12
- <section class="sidebar">
13
- <nav>
14
- <ul>
15
- <li>
16
- <a href='../index.html' class="">
17
- Home
18
- </a>
19
- </li>
20
-
21
- <li>
22
- <a href='../authenticators/default.html' class="">
23
- Authentication
24
- </a>
25
- </li>
26
-
27
-
28
- <li>
29
- <a href='../controllers/meta.html' class="">
30
- Meta API
31
- </a>
32
- </li>
33
-
34
- <li>
35
- <a href='../controllers/users.html' class="">
36
- Users API
37
- </a>
38
- </li>
39
-
40
- </ul>
41
- </nav>
42
- </section>
43
- <section class='content'>
44
-
45
-
46
- <h1>User Structure</h1>
47
-
48
- <h2>Base Attributes</h2>
49
- <table class='table paramTable'>
50
- <thead>
51
- <tr>
52
- <th width="45%">Attribute</th>
53
- <th width="20%">Type</th>
54
- <th width="35%">Example</th>
55
- </tr>
56
- </thead>
57
-
58
- <tr>
59
- <td>
60
- <p>
61
- <span class='paramTable__name'>id</span>
62
- </p>
63
-
64
- <p class='paramTable__description'>The user's internal system ID</p>
65
-
66
-
67
-
68
-
69
- </td>
70
- <td>Integer</td>
71
- <td>
72
-
73
- 123
74
-
75
- </td>
76
- </tr>
77
-
78
- <tr>
79
- <td>
80
- <p>
81
- <span class='paramTable__name'>username</span>
82
- </p>
83
-
84
- <p class='paramTable__description'>The user's unique username</p>
85
-
86
-
87
-
88
-
89
- </td>
90
- <td>String</td>
91
- <td>
92
-
93
- adamcooke
94
-
95
- </td>
96
- </tr>
97
-
98
- <tr>
99
- <td>
100
- <p>
101
- <span class='paramTable__name'>name.first</span>
102
- </p>
103
-
104
- <p class='paramTable__description'>The user's first name</p>
105
-
106
-
107
-
108
-
109
- </td>
110
- <td>String</td>
111
- <td>
112
-
113
- Adam
114
-
115
- </td>
116
- </tr>
117
-
118
- <tr>
119
- <td>
120
- <p>
121
- <span class='paramTable__name'>name.last</span>
122
- </p>
123
-
124
- <p class='paramTable__description'>The user's last name</p>
125
-
126
-
127
-
128
-
129
- </td>
130
- <td>String</td>
131
- <td>
132
-
133
- Cooke
134
-
135
- </td>
136
- </tr>
137
-
138
-
139
-
140
- </table>
141
-
142
-
143
-
144
-
145
- <h2>Extended Attributes</h2>
146
- <table class='table paramTable'>
147
- <thead>
148
- <tr>
149
- <th width="45%">Attribute</th>
150
- <th width="20%">Type</th>
151
- <th width="35%">Example</th>
152
- </tr>
153
- </thead>
154
-
155
- <tr>
156
- <td>
157
- <p>
158
- <span class='paramTable__name'>admin</span>
159
- </p>
160
-
161
- <p class='paramTable__description'>Is this user an administrator?</p>
162
-
163
-
164
-
165
-
166
- </td>
167
- <td>Boolean</td>
168
- <td>
169
-
170
- false
171
-
172
- </td>
173
- </tr>
174
-
175
- <tr>
176
- <td>
177
- <p>
178
- <span class='paramTable__name'>created_at</span>
179
- </p>
180
-
181
- <p class='paramTable__description'>The timestamp the user was created</p>
182
-
183
-
184
-
185
-
186
- </td>
187
- <td>Timestamp</td>
188
- <td>
189
-
190
- 2016-12-25 09:42:00 +0000
191
-
192
- </td>
193
- </tr>
194
-
195
- <tr>
196
- <td>
197
- <p>
198
- <span class='paramTable__name'>updated_at</span>
199
- </p>
200
-
201
- <p class='paramTable__description'>The timestamp the user was updated</p>
202
-
203
-
204
-
205
-
206
- </td>
207
- <td>Timestamp</td>
208
- <td>
209
-
210
- 2016-12-25 09:42:00 +0000
211
-
212
- </td>
213
- </tr>
214
-
215
- <tr>
216
- <td>
217
- <p>
218
- <span class='paramTable__name'>support_pin</span>
219
- </p>
220
-
221
- <p class='paramTable__description'>The PIN this user needs to use to access support</p>
222
-
223
-
224
-
225
-
226
- <ul class='paramTable__restrictedList'>
227
-
228
- <li>Can only be accessed by API users with admin access</li>
229
-
230
- </ul>
231
-
232
- </td>
233
- <td>String</td>
234
- <td>
235
-
236
- 4953
237
-
238
- </td>
239
- </tr>
240
-
241
- <tr>
242
- <td>
243
- <p>
244
- <span class='paramTable__name'>mask</span>
245
- </p>
246
-
247
- <p class='paramTable__description'>The unique mask that represents this user</p>
248
-
249
-
250
-
251
-
252
- <ul class='paramTable__restrictedList'>
253
-
254
- <li>Must not be authenticated (no auth headers provided).</li>
255
-
256
- </ul>
257
-
258
- </td>
259
- <td>String</td>
260
- <td>
261
-
262
- abc123abc123
263
-
264
- </td>
265
- </tr>
266
-
267
-
268
-
269
- </table>
270
-
271
-
272
-
273
-
274
- <h2>Expansions</h2>
275
- <p class='text'>
276
- Expansions are embedded structures of other objects that are related to the structure
277
- that you're viewing. Which expansions are returned by a specific action are shown on that
278
- action's documentation however some actions allow you to choose which expansions are
279
- returned.
280
- </p>
281
- <table class='table paramTable'>
282
- <thead>
283
- <tr>
284
- <th width="45%">Attribute</th>
285
- <th width="20%">Type</th>
286
- <th width="35%">Example</th>
287
- </tr>
288
- </thead>
289
-
290
- <tr>
291
- <td>
292
- <p>
293
- <span class='paramTable__name'>pets</span>
294
- </p>
295
-
296
- <p class='paramTable__description'>All pets that belong to this user</p>
297
-
298
-
299
-
300
-
301
- </td>
302
- <td>Array</td>
303
- <td>
304
-
305
- <a class='link' href="../structures/pet.html">Pet structure</a>
306
-
307
- </td>
308
- </tr>
309
-
310
-
311
-
312
-
313
- <tr>
314
- <td>
315
- <p>
316
- <span class='paramTable__name'>balance</span>
317
- </p>
318
-
319
- <p class='paramTable__description'>The user's balance</p>
320
-
321
- </td>
322
- <td>Float</td>
323
- <td>12.5</td>
324
- </tr>
325
-
326
-
327
- </table>
328
-
329
-
330
-
331
- </section>
332
- <footer class='footer'>
333
- <p>Generated by Moonrope at 12:43 on Monday 22 February 2016 for d3c499</p>
334
- </footer>
335
- <script src='https://code.jquery.com/jquery-1.12.0.min.js'></script>
336
- <script src='../assets/try.js'></script>
337
- </body>
338
- </html>