Project

General

Profile

Redmine API with curl command to get all issues

Added by John Simmons over 9 years ago

I'm trying to figure out how to use curl with the API, but Im' having very little success. I'd like an example of how to get all issues out of redmine. My end goal is to write some code that pulls all of the issues out of redmine in html or something, and then converts that to a .pdf. If someone could give me a good example of how to pull all of my issues out of redmine, that would be great. I've tried this.

curl -X GET "https://www.mysite.com/issues.xml?project_id=myProject&query_id=40&key=xxxxxxx" >out
.xml -D head --verbose -H "Accept: application/xml" -H "Content-Type: application/xml" --insecure

I used this from an example I found online, but I don't know what the headers for Accept: or Content-Type: should actually be.