I've been able to make GET calls works, but am yet to make a POST/PUT/DELETE do anything helpful.
I starteed with a hugely basic workflow in an effort get passing things via REST down pat. I've kept everythign in CURL, as that is what the examples noted above use and i'm wanting things to be easy.
For those where i currently am, here is a basic run down of what i know so far.
there are lots of ways to authenticate, but while learing BASIC is the one you should stick with. its super easy.
curl -k -u USERNAME:PASS --header "Content-Type: application/xml" -X GET https://WFAserver:443/rest/workflows
the -k ignores SSH keys
the -u allows you to provide initial challange authentication
the --header is where you call out XML or JSON
the -X is where you specify GET/POST/PUT/DELETE
all of this is followed by the URI
This also works with out issue:
curl -k -u USERNAME:PASS --header "Content-Type: application/xml" -X GET https://WFAserver:443/rest/workflows?name=testIgroup
Easy right? Thats what i thought too. The above work every time with out issue.
So when i tried to preform a POST to create an empty iGroup, my workflow has all the things in it to work and DOES work from the gui. Tthe only user input is "hostName", in an effor to make this as easy as possible. Under the advanced tab, i set the custom URI to "/testIgroup" In theory, it would be as hard as calling this: