Having provided some context about REST, I demonstrated how I can use a Firefox addon, REST Easy, to access the IBM BPM REST UI: -
which returns: -
and: -
However, I also asked my Slack buddies for recommendations on other REST clients, and someone rightly pointed out the Swiss Army Knife that is curl which is built into most Unix OS, including macOS.
So here's me accessing the same REST API: -
curl -i -k -u wasadmin:passw0rd -X GET https://bpm857.novalocal:8443/rest/bpm/wle/v1/process/currentlyExecuting
which returns: -
HTTP/1.1 200 OK
Date: Thu, 13 Apr 2017 09:23:34 GMT
X-Powered-By: Servlet/3.0
BPM_GENERIC_HEADER: SERVED
Cache-Control: no-cache, no-store, max-age=0
Set-Cookie: LtpaToken2=cxzAh/CU/jv6oBp37tplPmD7DS7toa92E2Pt5OJ0RyjtdymQ7gGeoBMuXpuf4yUTeXBAdtOzo+TCVWRFUxwJN2MF/yVnmHDawFK+L1kOvCz/3d5oe6WJ63IyVHm8j5esGreaWBQoWol0io2tRHvJxDrPb40YZhx/xcxO8YouHWud3B2BzBjvcRzKAhE0kFHKJ691BZZ6N3vQl+KDNFABB7aegqf98QlC7zTD6lj9SGy2WqEmm+TULisRfG+hmF19toU5gEjTIZ1Yxd7InefsOL4AsRLZnb6Bk8mfRFnofyP06+YAHSHkB8t5Vbvtm5F+ozDk/lMTYlyROBcSZVbepImrScgYCDZYFuHIffvHYSGdPT/CoGdODFOHOApqOTnIMVg5jTkHetiGpBFHG7DzjpxfdwMxc+Lg+31vOexpDPnRcO+KvHuyzKbpYiZcg1c5ozfIGvT+dW0zPeA/SZVXJgLypzA0QgF/MTzaNyvoON4SW2LlIicTnhcYcxj99h409m8LVb8MMIF0vL10UW3jJ3RIHjSfITalICa9faLgz1xAfdqVvMCRUdg1B8BdD6K28QEs8avWEXjYuDsYzl1ZUiMK18olxqV+qPK8+DcXIjW0NDWMW2iZDxahHJgpOQ4srIS3X248/GJaNeYeLu5wTp25/m/tksGpQFQA79fZeYg=; Path=/; HttpOnly
Set-Cookie: JSESSIONID=0000NWjcOUgFHUo5Oq2o6OuKtuS:1bb38qov8; Path=/; HttpOnly
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Transfer-Encoding: chunked
Content-Type: application/json
Content-Language: en-US
{"status":"200","data":{"instanceIDs":null}}
which returns: -
HTTP/1.1 200 OK
Date: Thu, 13 Apr 2017 09:23:34 GMT
X-Powered-By: Servlet/3.0
BPM_GENERIC_HEADER: SERVED
Cache-Control: no-cache, no-store, max-age=0
Set-Cookie: LtpaToken2=cxzAh/CU/jv6oBp37tplPmD7DS7toa92E2Pt5OJ0RyjtdymQ7gGeoBMuXpuf4yUTeXBAdtOzo+TCVWRFUxwJN2MF/yVnmHDawFK+L1kOvCz/3d5oe6WJ63IyVHm8j5esGreaWBQoWol0io2tRHvJxDrPb40YZhx/xcxO8YouHWud3B2BzBjvcRzKAhE0kFHKJ691BZZ6N3vQl+KDNFABB7aegqf98QlC7zTD6lj9SGy2WqEmm+TULisRfG+hmF19toU5gEjTIZ1Yxd7InefsOL4AsRLZnb6Bk8mfRFnofyP06+YAHSHkB8t5Vbvtm5F+ozDk/lMTYlyROBcSZVbepImrScgYCDZYFuHIffvHYSGdPT/CoGdODFOHOApqOTnIMVg5jTkHetiGpBFHG7DzjpxfdwMxc+Lg+31vOexpDPnRcO+KvHuyzKbpYiZcg1c5ozfIGvT+dW0zPeA/SZVXJgLypzA0QgF/MTzaNyvoON4SW2LlIicTnhcYcxj99h409m8LVb8MMIF0vL10UW3jJ3RIHjSfITalICa9faLgz1xAfdqVvMCRUdg1B8BdD6K28QEs8avWEXjYuDsYzl1ZUiMK18olxqV+qPK8+DcXIjW0NDWMW2iZDxahHJgpOQ4srIS3X248/GJaNeYeLu5wTp25/m/tksGpQFQA79fZeYg=; Path=/; HttpOnly
Set-Cookie: JSESSIONID=0000NWjcOUgFHUo5Oq2o6OuKtuS:1bb38qov8; Path=/; HttpOnly
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Transfer-Encoding: chunked
Content-Type: application/json
Content-Language: en-US
{"status":"200","data":{"instanceIDs":null}}
which is rather lovely.
Of course, BPM has a built-in REST client: -
which also is rather useful.
No comments:
Post a Comment