i have installed webissues 2.0.2 server on my server n using postman i tried to access api login request with url baseurl/server/api/login.php and giving params in form-data for login and password. its giving me 400 Syntax Error in response. can you guide what is my mistake here and is there any api documentation for webissues server 2.0.2
- Log in to post comments
can anyone please reply on my above issue
Version 2 of WebIssues uses a new API based on JSON, not form-data. There is no API documentation, you could inspect the messages exchanges between the web browser and the server.
Regards,
Michał
Thanks using the json i succeeded in getting the correct login api response.
can you tell me any example code in php of how to resend the cookie (received in login response) in any further request after login.
It depends on how you call the API in PHP. If you simply use
file_get_contents()
, you have to manually parse the$http_response_header
and look for theSet-Cookie
header. You could also use some wrapper library which would do this for you.Regards,
Michał