Monday, May 23, 2011

C# library for accessing the REST APIs exposed by Redmine

I created a C# library for accessing the REST APIs exposed by Redmine, this is available at GitHub.

Here is some sample code to dump the first 100 issues of a project using this library.

RedmineClient rc = new RedmineClient("127.0.0.1", 80, "redmine", false, "api_key");
Projects projects = rc.getProjects(true);

// get all issues for project "test"
Issues issues = rc.getIssues(projects.getProjectByIdentifier("test"), 0);
issues.dump(project.name);

This library makes use of XmlSerializer to automatically translate C# objects to XML and XML to C# objects.

No comments:

Post a Comment