Skip to content
This repository

Redmine REST api update #7

Open
wants to merge 3 commits into from

2 participants

Vladimir Fedin Alexander Gladysh
Vladimir Fedin

Added request to get all time entries from single issue.
Added optional parameter "include" for get_issue request to allow journal view for issue.
Cleaned up trailing spaces from apps/redmine.json.

Alexander Gladysh

Ping?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 67 additions and 54 deletions. Show diff stats Hide diff stats

  1. 121  apps/redmine.json
121  apps/redmine.json
@@ -2,14 +2,14 @@
2 2
    "name" : "Redmine API",
3 3
    "authority" : "GITHUB:Keen-github",
4 4
    "formats" : [
5  
-      "json", 
  5
+      "json",
6 6
       "xml"
7  
-   ],   
  7
+   ],
8 8
    "version" : "0.1",
9  
- 
  9
+
10 10
    "methods" :{
11 11
       "list_issues" : {
12  
-         "path" : "/issues.:format", 
  12
+         "path" : "/issues.:format",
13 13
          "required_params" : [
14 14
             "format"
15 15
          ],
@@ -20,24 +20,27 @@
20 20
             "project_id",
21 21
             "tracker_id",
22 22
             "status_id",
23  
-            "cf_XXX"            
  23
+            "cf_XXX"
24 24
          ],
25 25
          "method" : "GET",
26 26
          "authentication" : true
27 27
       },
28  
-      
  28
+
29 29
       "get_issue" : {
30  
-         "path" : "/issues/:id.:format", 
  30
+         "path" : "/issues/:id.:format",
31 31
          "required_params" : [
32 32
             "id",
33 33
             "format"
34 34
          ],
  35
+         "optional_params" : [
  36
+            "include"
  37
+         ],
35 38
          "method" : "GET",
36 39
          "authentication" : true
37 40
       },
38  
-        
  41
+
39 42
       "create_issue" : {
40  
-         "path" : "/issues.:format", 
  43
+         "path" : "/issues.:format",
41 44
          "required_params" : [
42 45
             "format"
43 46
          ],
@@ -47,7 +50,7 @@
47 50
       },
48 51
 
49 52
       "update_issue" : {
50  
-         "path" : "/issues/:id.:format", 
  53
+         "path" : "/issues/:id.:format",
51 54
          "required_params" : [
52 55
             "id",
53 56
             "format"
@@ -58,7 +61,7 @@
58 61
       },
59 62
 
60 63
       "delete_issue" : {
61  
-         "path" : "/issues/:id.:format", 
  64
+         "path" : "/issues/:id.:format",
62 65
          "required_params" : [
63 66
             "id",
64 67
             "format"
@@ -66,9 +69,9 @@
66 69
          "method" : "DELETE",
67 70
          "authentication" : true
68 71
       },
69  
-      
  72
+
70 73
       "list_projects" : {
71  
-         "path" : "/projects.:format", 
  74
+         "path" : "/projects.:format",
72 75
          "required_params" : [
73 76
             "format"
74 77
          ],
@@ -77,28 +80,28 @@
77 80
       },
78 81
 
79 82
       "get_project" : {
80  
-         "path" : "/projects/:id.:format", 
  83
+         "path" : "/projects/:id.:format",
81 84
          "required_params" : [
82 85
             "id",
83  
-            "format"            
  86
+            "format"
84 87
          ],
85 88
          "method" : "GET",
86 89
          "authentication" : true
87 90
       },
88  
-      
  91
+
89 92
       "create_project" : {
90  
-         "path" : "/projects.:format", 
  93
+         "path" : "/projects.:format",
91 94
          "required_params" : [
92 95
             "format"
93 96
          ],
94 97
          "method" : "POST",
95  
-         "authentication" : true,    
  98
+         "authentication" : true,
96 99
          "required_payload": true,
97 100
          "expected_status": [201, 422]
98 101
       },
99 102
 
100 103
       "update_project" : {
101  
-         "path" : "/projects/:id.:format", 
  104
+         "path" : "/projects/:id.:format",
102 105
          "required_params" : [
103 106
             "id",
104 107
             "format"
@@ -109,7 +112,7 @@
109 112
       },
110 113
 
111 114
       "delete_project" : {
112  
-         "path" : "/projects/:id.:format", 
  115
+         "path" : "/projects/:id.:format",
113 116
          "required_params" : [
114 117
             "id",
115 118
             "format"
@@ -119,7 +122,7 @@
119 122
       },
120 123
 
121 124
       "list_users" : {
122  
-         "path" : "/users.:format", 
  125
+         "path" : "/users.:format",
123 126
          "required_params" : [
124 127
             "format"
125 128
          ],
@@ -128,7 +131,7 @@
128 131
       },
129 132
 
130 133
       "get_user" : {
131  
-         "path" : "/users/:id.:format", 
  134
+         "path" : "/users/:id.:format",
132 135
          "required_params" : [
133 136
             "id",
134 137
             "format"
@@ -136,9 +139,9 @@
136 139
          "method" : "GET",
137 140
          "authentication" : true
138 141
       },
139  
-      
  142
+
140 143
       "get_current_user" : {
141  
-         "path" : "/users/current.:format", 
  144
+         "path" : "/users/current.:format",
142 145
          "required_params" : [
143 146
             "format"
144 147
          ],
@@ -150,7 +153,7 @@
150 153
       },
151 154
 
152 155
       "create_user" : {
153  
-         "path" : "/users.:format", 
  156
+         "path" : "/users.:format",
154 157
          "required_params" : [
155 158
             "format"
156 159
          ],
@@ -161,7 +164,7 @@
161 164
       },
162 165
 
163 166
       "update_user" : {
164  
-         "path" : "/users/:id.:format", 
  167
+         "path" : "/users/:id.:format",
165 168
          "required_params" : [
166 169
             "id",
167 170
             "format"
@@ -172,7 +175,7 @@
172 175
       },
173 176
 
174 177
       "delete_user" : {
175  
-         "path" : "/users/:id.:format", 
  178
+         "path" : "/users/:id.:format",
176 179
          "required_params" : [
177 180
             "id",
178 181
             "format"
@@ -183,7 +186,7 @@
183 186
       },
184 187
 
185 188
       "list_time_entries" : {
186  
-         "path" : "/time_entries.:format", 
  189
+         "path" : "/time_entries.:format",
187 190
          "required_params" : [
188 191
             "format"
189 192
          ],
@@ -192,7 +195,7 @@
192 195
       },
193 196
 
194 197
       "get_time_entry" : {
195  
-         "path" : "/time_entries/:id.:format", 
  198
+         "path" : "/time_entries/:id.:format",
196 199
          "required_params" : [
197 200
             "id",
198 201
             "format"
@@ -200,9 +203,19 @@
200 203
          "method" : "GET",
201 204
          "authentication" : true
202 205
       },
203  
-      
  206
+
  207
+      "get_issue_time_entries" : {
  208
+         "path" : "/issues/:id/time_entries.:format",
  209
+         "required_params" : [
  210
+            "id",
  211
+            "format"
  212
+         ],
  213
+         "method" : "GET",
  214
+         "authentication" : true
  215
+      },
  216
+
204 217
       "create_time_entries" : {
205  
-         "path" : "/time_entries.:format", 
  218
+         "path" : "/time_entries.:format",
206 219
          "required_params" : [
207 220
             "format"
208 221
          ],
@@ -213,7 +226,7 @@
213 226
       },
214 227
 
215 228
       "update_time_entries" : {
216  
-         "path" : "/time_entries/:id.:format", 
  229
+         "path" : "/time_entries/:id.:format",
217 230
          "required_params" : [
218 231
             "id",
219 232
             "format"
@@ -225,7 +238,7 @@
225 238
       },
226 239
 
227 240
       "delete_time_entry" : {
228  
-         "path" : "/time_entries/:id.:format", 
  241
+         "path" : "/time_entries/:id.:format",
229 242
          "required_params" : [
230 243
             "id",
231 244
             "format"
@@ -233,9 +246,9 @@
233 246
          "method" : "DELETE",
234 247
          "authentication" : true
235 248
       },
236  
-      
  249
+
237 250
       "list_issue_relations" : {
238  
-         "path" : "/issues/:issue_id/relations.:format", 
  251
+         "path" : "/issues/:issue_id/relations.:format",
239 252
          "required_params" : [
240 253
             "issue_id",
241 254
             "format"
@@ -243,9 +256,9 @@
243 256
          "method" : "GET",
244 257
          "authentication" : true
245 258
       },
246  
-      
  259
+
247 260
       "get_issue_relation" : {
248  
-         "path" : "/relations/:id.:format", 
  261
+         "path" : "/relations/:id.:format",
249 262
          "required_params" : [
250 263
             "id",
251 264
             "format"
@@ -253,9 +266,9 @@
253 266
          "method" : "GET",
254 267
          "authentication" : true
255 268
       },
256  
-        
  269
+
257 270
       "create_issue_relation" : {
258  
-         "path" : "/issues/:issue_id/relations.:format", 
  271
+         "path" : "/issues/:issue_id/relations.:format",
259 272
          "required_params" : [
260 273
             "issue_id",
261 274
             "format"
@@ -267,7 +280,7 @@
267 280
       },
268 281
 
269 282
       "delete_issue_relation" : {
270  
-         "path" : "/relations/:id.:format", 
  283
+         "path" : "/relations/:id.:format",
271 284
          "required_params" : [
272 285
             "id",
273 286
             "format"
@@ -276,9 +289,9 @@
276 289
          "authentication" : true,
277 290
          "expected_status": [200, 422]
278 291
       },
279  
-      
  292
+
280 293
       "list_versions" : {
281  
-         "path" : "/projects/:project_id/versions.:format", 
  294
+         "path" : "/projects/:project_id/versions.:format",
282 295
          "required_params" : [
283 296
             "project_id",
284 297
             "format"
@@ -288,29 +301,29 @@
288 301
       },
289 302
 
290 303
       "get_version" : {
291  
-         "path" : "/versions/:id.:format", 
  304
+         "path" : "/versions/:id.:format",
292 305
          "required_params" : [
293 306
             "id",
294  
-            "format"            
  307
+            "format"
295 308
          ],
296 309
          "method" : "GET",
297 310
          "authentication" : true
298 311
       },
299  
-      
  312
+
300 313
       "create_version" : {
301  
-         "path" : "/projects/:project_id/versions.:format", 
  314
+         "path" : "/projects/:project_id/versions.:format",
302 315
          "required_params" : [
303 316
             "project_id",
304 317
             "format"
305 318
          ],
306 319
          "method" : "POST",
307  
-         "authentication" : true,    
  320
+         "authentication" : true,
308 321
          "required_payload": true,
309 322
          "expected_status": [201, 422]
310 323
       },
311 324
 
312 325
       "update_version" : {
313  
-         "path" : "/versions/:id.:format", 
  326
+         "path" : "/versions/:id.:format",
314 327
          "required_params" : [
315 328
             "id",
316 329
             "format"
@@ -322,7 +335,7 @@
322 335
       },
323 336
 
324 337
       "delete_version" : {
325  
-         "path" : "/versions/:id.:format", 
  338
+         "path" : "/versions/:id.:format",
326 339
          "required_params" : [
327 340
             "id",
328 341
             "format"
@@ -332,7 +345,7 @@
332 345
       },
333 346
 
334 347
       "list_queries" : {
335  
-         "path" : "/queries.:format", 
  348
+         "path" : "/queries.:format",
336 349
          "required_params" : [
337 350
             "format"
338 351
          ],
@@ -342,19 +355,19 @@
342 355
       },
343 356
 
344 357
       "get_attachment" : {
345  
-         "path" : "/attachments/:id.:format", 
  358
+         "path" : "/attachments/:id.:format",
346 359
          "required_params" : [
347 360
             "id",
348 361
             "format"
349 362
          ],
350 363
          "method" : "GET",
351 364
          "authentication" : true
352  
-     }               
  365
+     }
353 366
    },
354  
-   
  367
+
355 368
     "meta" : {
356 369
       "documentation" : "http://www.redmine.org/projects/redmine/wiki/Rest_api",
357 370
       "authors" : "LogicEditor.com: Valeriy Skurikhin"
358 371
     }
359  
-   
  372
+
360 373
 }
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.