From bc01704a990f7cf9a84a4bda67b96751b4d9771c Mon Sep 17 00:00:00 2001 From: Vladimir Fedin Date: Wed, 25 Apr 2012 14:54:16 +0400 Subject: [PATCH 1/3] apps/redmine.json: get_issue_time_entries added --- apps/redmine.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apps/redmine.json b/apps/redmine.json index 5e745a4..546ae57 100644 --- a/apps/redmine.json +++ b/apps/redmine.json @@ -201,6 +201,16 @@ "authentication" : true }, + "get_issue_time_entries" : { + "path" : "/issues/:id/time_entries.:format", + "required_params" : [ + "id", + "format" + ], + "method" : "GET", + "authentication" : true + }, + "create_time_entries" : { "path" : "/time_entries.:format", "required_params" : [ From aee6bd73041c59842051ca33173ccb64c17ea64d Mon Sep 17 00:00:00 2001 From: Vladimir Fedin Date: Wed, 25 Apr 2012 14:55:47 +0400 Subject: [PATCH 2/3] apps/redmine.json: "include" optional parameter added to 'get_issue' to allow "include=journal" --- apps/redmine.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/redmine.json b/apps/redmine.json index 546ae57..128d2bd 100644 --- a/apps/redmine.json +++ b/apps/redmine.json @@ -32,6 +32,9 @@ "id", "format" ], + "optional_params" : [ + "include" + ], "method" : "GET", "authentication" : true }, From 7c353349ff66dfbd35432960306a7c059597acf8 Mon Sep 17 00:00:00 2001 From: Vladimir Fedin Date: Wed, 25 Apr 2012 14:56:11 +0400 Subject: [PATCH 3/3] apps/redmine.json: trailing spaces removed --- apps/redmine.json | 108 +++++++++++++++++++++++----------------------- 1 file changed, 54 insertions(+), 54 deletions(-) diff --git a/apps/redmine.json b/apps/redmine.json index 128d2bd..322d776 100644 --- a/apps/redmine.json +++ b/apps/redmine.json @@ -2,14 +2,14 @@ "name" : "Redmine API", "authority" : "GITHUB:Keen-github", "formats" : [ - "json", + "json", "xml" - ], + ], "version" : "0.1", - + "methods" :{ "list_issues" : { - "path" : "/issues.:format", + "path" : "/issues.:format", "required_params" : [ "format" ], @@ -20,14 +20,14 @@ "project_id", "tracker_id", "status_id", - "cf_XXX" + "cf_XXX" ], "method" : "GET", "authentication" : true }, - + "get_issue" : { - "path" : "/issues/:id.:format", + "path" : "/issues/:id.:format", "required_params" : [ "id", "format" @@ -38,9 +38,9 @@ "method" : "GET", "authentication" : true }, - + "create_issue" : { - "path" : "/issues.:format", + "path" : "/issues.:format", "required_params" : [ "format" ], @@ -50,7 +50,7 @@ }, "update_issue" : { - "path" : "/issues/:id.:format", + "path" : "/issues/:id.:format", "required_params" : [ "id", "format" @@ -61,7 +61,7 @@ }, "delete_issue" : { - "path" : "/issues/:id.:format", + "path" : "/issues/:id.:format", "required_params" : [ "id", "format" @@ -69,9 +69,9 @@ "method" : "DELETE", "authentication" : true }, - + "list_projects" : { - "path" : "/projects.:format", + "path" : "/projects.:format", "required_params" : [ "format" ], @@ -80,28 +80,28 @@ }, "get_project" : { - "path" : "/projects/:id.:format", + "path" : "/projects/:id.:format", "required_params" : [ "id", - "format" + "format" ], "method" : "GET", "authentication" : true }, - + "create_project" : { - "path" : "/projects.:format", + "path" : "/projects.:format", "required_params" : [ "format" ], "method" : "POST", - "authentication" : true, + "authentication" : true, "required_payload": true, "expected_status": [201, 422] }, "update_project" : { - "path" : "/projects/:id.:format", + "path" : "/projects/:id.:format", "required_params" : [ "id", "format" @@ -112,7 +112,7 @@ }, "delete_project" : { - "path" : "/projects/:id.:format", + "path" : "/projects/:id.:format", "required_params" : [ "id", "format" @@ -122,7 +122,7 @@ }, "list_users" : { - "path" : "/users.:format", + "path" : "/users.:format", "required_params" : [ "format" ], @@ -131,7 +131,7 @@ }, "get_user" : { - "path" : "/users/:id.:format", + "path" : "/users/:id.:format", "required_params" : [ "id", "format" @@ -139,9 +139,9 @@ "method" : "GET", "authentication" : true }, - + "get_current_user" : { - "path" : "/users/current.:format", + "path" : "/users/current.:format", "required_params" : [ "format" ], @@ -153,7 +153,7 @@ }, "create_user" : { - "path" : "/users.:format", + "path" : "/users.:format", "required_params" : [ "format" ], @@ -164,7 +164,7 @@ }, "update_user" : { - "path" : "/users/:id.:format", + "path" : "/users/:id.:format", "required_params" : [ "id", "format" @@ -175,7 +175,7 @@ }, "delete_user" : { - "path" : "/users/:id.:format", + "path" : "/users/:id.:format", "required_params" : [ "id", "format" @@ -186,7 +186,7 @@ }, "list_time_entries" : { - "path" : "/time_entries.:format", + "path" : "/time_entries.:format", "required_params" : [ "format" ], @@ -195,7 +195,7 @@ }, "get_time_entry" : { - "path" : "/time_entries/:id.:format", + "path" : "/time_entries/:id.:format", "required_params" : [ "id", "format" @@ -203,7 +203,7 @@ "method" : "GET", "authentication" : true }, - + "get_issue_time_entries" : { "path" : "/issues/:id/time_entries.:format", "required_params" : [ @@ -215,7 +215,7 @@ }, "create_time_entries" : { - "path" : "/time_entries.:format", + "path" : "/time_entries.:format", "required_params" : [ "format" ], @@ -226,7 +226,7 @@ }, "update_time_entries" : { - "path" : "/time_entries/:id.:format", + "path" : "/time_entries/:id.:format", "required_params" : [ "id", "format" @@ -238,7 +238,7 @@ }, "delete_time_entry" : { - "path" : "/time_entries/:id.:format", + "path" : "/time_entries/:id.:format", "required_params" : [ "id", "format" @@ -246,9 +246,9 @@ "method" : "DELETE", "authentication" : true }, - + "list_issue_relations" : { - "path" : "/issues/:issue_id/relations.:format", + "path" : "/issues/:issue_id/relations.:format", "required_params" : [ "issue_id", "format" @@ -256,9 +256,9 @@ "method" : "GET", "authentication" : true }, - + "get_issue_relation" : { - "path" : "/relations/:id.:format", + "path" : "/relations/:id.:format", "required_params" : [ "id", "format" @@ -266,9 +266,9 @@ "method" : "GET", "authentication" : true }, - + "create_issue_relation" : { - "path" : "/issues/:issue_id/relations.:format", + "path" : "/issues/:issue_id/relations.:format", "required_params" : [ "issue_id", "format" @@ -280,7 +280,7 @@ }, "delete_issue_relation" : { - "path" : "/relations/:id.:format", + "path" : "/relations/:id.:format", "required_params" : [ "id", "format" @@ -289,9 +289,9 @@ "authentication" : true, "expected_status": [200, 422] }, - + "list_versions" : { - "path" : "/projects/:project_id/versions.:format", + "path" : "/projects/:project_id/versions.:format", "required_params" : [ "project_id", "format" @@ -301,29 +301,29 @@ }, "get_version" : { - "path" : "/versions/:id.:format", + "path" : "/versions/:id.:format", "required_params" : [ "id", - "format" + "format" ], "method" : "GET", "authentication" : true }, - + "create_version" : { - "path" : "/projects/:project_id/versions.:format", + "path" : "/projects/:project_id/versions.:format", "required_params" : [ "project_id", "format" ], "method" : "POST", - "authentication" : true, + "authentication" : true, "required_payload": true, "expected_status": [201, 422] }, "update_version" : { - "path" : "/versions/:id.:format", + "path" : "/versions/:id.:format", "required_params" : [ "id", "format" @@ -335,7 +335,7 @@ }, "delete_version" : { - "path" : "/versions/:id.:format", + "path" : "/versions/:id.:format", "required_params" : [ "id", "format" @@ -345,7 +345,7 @@ }, "list_queries" : { - "path" : "/queries.:format", + "path" : "/queries.:format", "required_params" : [ "format" ], @@ -355,19 +355,19 @@ }, "get_attachment" : { - "path" : "/attachments/:id.:format", + "path" : "/attachments/:id.:format", "required_params" : [ "id", "format" ], "method" : "GET", "authentication" : true - } + } }, - + "meta" : { "documentation" : "http://www.redmine.org/projects/redmine/wiki/Rest_api", "authors" : "LogicEditor.com: Valeriy Skurikhin" } - + }