How is the Base-URL for the REST-API while using the Demo-Environment?

Added by Karsten Heimer almost 2 years ago

Hello,

i have set up a Redmine-Demo, accessible via "kheimer.m.redmine.org". I have activated the the REST-API.

But: How is the the Base-URL, wich i can use in my Client, by example for getting the "issues". I have tested with: "http://kheimer.m.redmine.otrg/issues" but the result is not the expected xml-file, it is the complete HTML-Form...

What do i wrong?

Greetings...

Replies (2)

RE: How is the Base-URL for the REST-API while using the Demo-Environment? - Added by Bernhard Rohloff almost 2 years ago

Hi Karsten,

first of all, welcome to the Redmine community!

The right URL to get to the API should be http://kheimer.m.redmine.org/issues.json or http://kheimer.m.redmine.org/issues.xml depending on how your data should be formatted.
You also have to enable the REST-API access under Administration > Settings > API before using it.

You can find a detailed description in the Rest_api wiki article.

Kind regards,

Bernhard

RE: How is the Base-URL for the REST-API while using the Demo-Environment? - Added by Karsten Heimer almost 2 years ago

Bernhard, thank you. Your answer solved my problem.

Greetings...

(1-2/2)