Hello all,
we have mantis 2.8.0 installed with MySQL and on Windows IIS. Now we want to try use REST_API and we have problem with the calling REST API interface. We have tried calling from command line or from powershell (using library from GitHub) - but we still receive error message "{"message":"Summary not specified","code":11 ..." despite the fact that in calling routine is summary field specified - for example:
your data-raw is not valid json. Strings need to be double quoted not single(... "summary" : "test", ...).
As your are using IIS, some remarks about that:
You need a web.config for url rewrites in api/rest. That was added in 2.20.0, if I remember correctly. If you like to stay with 2.8.0, take a look at the mantis github repo to see what's needed.
By default the IIS php fastcgi handler only supports the verbs GET, POST and HEAD. For some of the REST API the verbs DELETE and PATCH need to be added there.
Hello Ombsch,
thank for the tips - we will try it - some of them we have tried already (URL rewrite module, single quoting, ...) but not all together. I'll put the result then.
M.