summaryrefslogblamecommitdiff
path: root/apps/redmine.json
blob: 5e745a4ad73fcdbdee0f4288ecc5cada7fb2b1cb (plain) (tree)







































































































































































































































































































































































                                                                                
{
   "name" : "Redmine API",
   "authority" : "GITHUB:Keen-github",
   "formats" : [
      "json", 
      "xml"
   ],   
   "version" : "0.1",
 
   "methods" :{
      "list_issues" : {
         "path" : "/issues.:format", 
         "required_params" : [
            "format"
         ],
         "optional_params" : [
            "offset",
            "limit",
            "page",
            "project_id",
            "tracker_id",
            "status_id",
            "cf_XXX"            
         ],
         "method" : "GET",
         "authentication" : true
      },
      
      "get_issue" : {
         "path" : "/issues/:id.:format", 
         "required_params" : [
            "id",
            "format"
         ],
         "method" : "GET",
         "authentication" : true
      },
        
      "create_issue" : {
         "path" : "/issues.:format", 
         "required_params" : [
            "format"
         ],
         "method" : "POST",
         "required_payload": true,
         "authentication" : true
      },

      "update_issue" : {
         "path" : "/issues/:id.:format", 
         "required_params" : [
            "id",
            "format"
         ],
         "method" : "PUT",
         "required_payload": true,
         "authentication" : true
      },

      "delete_issue" : {
         "path" : "/issues/:id.:format", 
         "required_params" : [
            "id",
            "format"
         ],
         "method" : "DELETE",
         "authentication" : true
      },
      
      "list_projects" : {
         "path" : "/projects.:format", 
         "required_params" : [
            "format"
         ],
         "method" : "GET",
         "authentication" : true
      },

      "get_project" : {
         "path" : "/projects/:id.:format", 
         "required_params" : [
            "id",
            "format"            
         ],
         "method" : "GET",
         "authentication" : true
      },
      
      "create_project" : {
         "path" : "/projects.:format", 
         "required_params" : [
            "format"
         ],
         "method" : "POST",
         "authentication" : true,    
         "required_payload": true,
         "expected_status": [201, 422]
      },

      "update_project" : {
         "path" : "/projects/:id.:format", 
         "required_params" : [
            "id",
            "format"
         ],
         "method" : "PUT",
         "required_payload": true,
         "authentication" : true
      },

      "delete_project" : {
         "path" : "/projects/:id.:format", 
         "required_params" : [
            "id",
            "format"
         ],
         "method" : "DELETE",
         "authentication" : true
      },

      "list_users" : {
         "path" : "/users.:format", 
         "required_params" : [
            "format"
         ],
         "method" : "GET",
         "authentication" : true
      },

      "get_user" : {
         "path" : "/users/:id.:format", 
         "required_params" : [
            "id",
            "format"
         ],
         "method" : "GET",
         "authentication" : true
      },
      
      "get_current_user" : {
         "path" : "/users/current.:format", 
         "required_params" : [
            "format"
         ],
         "optional_params" : [
            "include"
         ],
         "method" : "GET",
         "authentication" : true
      },

      "create_user" : {
         "path" : "/users.:format", 
         "required_params" : [
            "format"
         ],
         "method" : "POST",
         "authentication" : true,
         "required_payload": true,
         "expected_status": [201, 422]
      },

      "update_user" : {
         "path" : "/users/:id.:format", 
         "required_params" : [
            "id",
            "format"
         ],
         "method" : "PUT",
         "required_payload": true,
         "authentication" : true
      },

      "delete_user" : {
         "path" : "/users/:id.:format", 
         "required_params" : [
            "id",
            "format"
         ],
         "method" : "DELETE",
         "authentication" : true,
         "expected_status": [200]
      },

      "list_time_entries" : {
         "path" : "/time_entries.:format", 
         "required_params" : [
            "format"
         ],
         "method" : "GET",
         "authentication" : true
      },

      "get_time_entry" : {
         "path" : "/time_entries/:id.:format", 
         "required_params" : [
            "id",
            "format"
         ],
         "method" : "GET",
         "authentication" : true
      },
      
      "create_time_entries" : {
         "path" : "/time_entries.:format", 
         "required_params" : [
            "format"
         ],
         "method" : "POST",
         "authentication" : true,
         "required_payload": true,
         "expected_status": [201, 422]
      },

      "update_time_entries" : {
         "path" : "/time_entries/:id.:format", 
         "required_params" : [
            "id",
            "format"
         ],
         "method" : "PUT",
         "authentication" : true,
         "required_payload": true,
         "expected_status": [200, 422]
      },

      "delete_time_entry" : {
         "path" : "/time_entries/:id.:format", 
         "required_params" : [
            "id",
            "format"
         ],
         "method" : "DELETE",
         "authentication" : true
      },
      
      "list_issue_relations" : {
         "path" : "/issues/:issue_id/relations.:format", 
         "required_params" : [
            "issue_id",
            "format"
         ],
         "method" : "GET",
         "authentication" : true
      },
      
      "get_issue_relation" : {
         "path" : "/relations/:id.:format", 
         "required_params" : [
            "id",
            "format"
         ],
         "method" : "GET",
         "authentication" : true
      },
        
      "create_issue_relation" : {
         "path" : "/issues/:issue_id/relations.:format", 
         "required_params" : [
            "issue_id",
            "format"
         ],
         "method" : "POST",
         "authentication" : true,
         "required_payload": true,
         "expected_status": [201, 422]
      },

      "delete_issue_relation" : {
         "path" : "/relations/:id.:format", 
         "required_params" : [
            "id",
            "format"
         ],
         "method" : "DELETE",
         "authentication" : true,
         "expected_status": [200, 422]
      },
      
      "list_versions" : {
         "path" : "/projects/:project_id/versions.:format", 
         "required_params" : [
            "project_id",
            "format"
         ],
         "method" : "GET",
         "authentication" : true
      },

      "get_version" : {
         "path" : "/versions/:id.:format", 
         "required_params" : [
            "id",
            "format"            
         ],
         "method" : "GET",
         "authentication" : true
      },
      
      "create_version" : {
         "path" : "/projects/:project_id/versions.:format", 
         "required_params" : [
            "project_id",
            "format"
         ],
         "method" : "POST",
         "authentication" : true,    
         "required_payload": true,
         "expected_status": [201, 422]
      },

      "update_version" : {
         "path" : "/versions/:id.:format", 
         "required_params" : [
            "id",
            "format"
         ],
         "method" : "PUT",
         "authentication" : true,
         "required_payload": true,
         "expected_status": [200, 422]
      },

      "delete_version" : {
         "path" : "/versions/:id.:format", 
         "required_params" : [
            "id",
            "format"
         ],
         "method" : "DELETE",
         "authentication" : true
      },

      "list_queries" : {
         "path" : "/queries.:format", 
         "required_params" : [
            "format"
         ],
         "method" : "GET",
         "authentication" : true,
         "expected_status": [200, 422]
      },

      "get_attachment" : {
         "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"
    }
   
}