Problem REST API - adding issue
Posted: 08 Jan 2020, 16:17
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:
Any experience / advice on your site?
Thanks
MiSu
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:
Code: Select all
curl --location --insecure --request POST "https://mantis.v1.essox.cz/api/rest/index.php/issues/" --header "Authorization: eRVmZRJUPwYMSNh4tX8QxqpcMvDXLi2l" --header "Content-Type: application/json" --data-raw "{ 'summary': 'This is a test issue', 'description': 'This is a test description', 'category': { 'name': 'General' }, 'project': { 'name': 'project1' }}"
Thanks
MiSu