Unable to do a PUT, DELETE or POST
"I'm unable to do a PUT, DELETE or POST request in Bonita 7.4.3, using the REST API. I'm always getting a 401 Http error, despite adding the cookie to every request. The GET request works with no problem"
You've definitely logged in?
Have you tried it through an Advanced REST Client (like chrome) manually. We tend to try this in these cases:
- Do Get
- Do Post
Gives us the idea of where it goes wrong...
I'm rather new at Bonita myself, but recently have managed to make a full rest workflow. I had the same problem as you have. The only way I could solve it was:
Install Postman (an alternative to advanced rest client). It stores the cookies for you, so it should behave just like a browser).
Test all GET, POST, PUT, DELETEs there. Once is working, check the full messages sent.
Then, try to produce the same messages in Bonita (headers, url, payload). In order to know exactly what you are sending from Bonita, I installed Fliddler, a network monitor. In order to analize Bonita traffic, you must add proxy settings in the REST connector in Bonita (I think that localhost:8888) but you can check that in Fiddler.
I'ts a lot of work, and it took me a whole week to get it working ok, but now it's OK.
If you are still stuck by now, give it a try.
I try to do in postman and the result is the same: GET works; DELETE, PUT and POST doesn´t works.