Project

General

Profile

Rest Request fails

Added by Lennard Hunfeld over 14 years ago

Hi,

i've got a problem using the C# REST api to request issues and projects. All i receive is a 406, but i don't know why. I've already tried using curl receiving nothing but an empty file.
It would be very nice, if someones got an idea.

Greetz,
Lennard


Replies (3)

RE: Rest Request fails - Added by Felix Schäfer over 14 years ago

Could you please tell us more about your setup, what version of redmine you use, and so on?

RE: Rest Request fails - Added by Lennard Hunfeld over 14 years ago

Well i can only tell you its version 0.9.3 and that rest is activated. It's not my server, so i don't really know about other settings.

RE: Rest Request fails - Added by Felix Schäfer over 14 years ago

Well, IIRC only the projects REST API is in stable for now, see Rest_api for more details. I think you also need to set the Accept: header to the mime-type for xml. This has already been asked a few times (not C# specific, but pertaining to the REST API), so I'd suggest sifting through the forums for more info, and if you find something's missing on the wiki pages, please edit them.

    (1-3/3)