The file that is linked below includes two different examples of workflow configurations that use the REST Server agent:
WFL_no_ssl
is setup to receive REST requests from any clients without the need for any certificate verifications on either end. Debug events are generated to display the responses from the server. No authentication is used.WFL_1-way_ssl
is setup to receive REST requests from clients and to respond to the client with the server certificate, by way of the server keystore. Debug events are generated to display the responses from the server. No authentication is used.WFL_1-way_ssl_OAuth2
is setup to receive REST requests from clients and to respond to the client with the server certificate, by way of the server keystore. Debug events are generated to display the responses from the server. OAuth 2.0 is used for authentication.WFL_2-way_ssl
is setup to receive REST requests from clients and to respond to the client with the server certificate. The REST Server will also request for verification of the client certification using a truststore stored on the server itself. Debug events are generated to display the responses from the server. No authentication is used.WFL_2-way_ssl_OAuth2
is setup to receive REST requests from clients and to respond to the client with the server certificate. The REST Server will also request for verification of the client certification using a truststore stored on the server itself. Debug events are generated to display the responses from the server. OAuth 2.0 is used for authentication.
Example workflows: REST_Server_example_export.zip
Note!
cURL commands, third party rest client applications (e.g. Postman) or even 's own REST Client agent can be utilized to send REST requests to the REST Server agent.
Example cURL
Example for GET
no SSL
curl "http://localhost:8089/abc"
with SSL
curl "https://localhost:8089/abc" --insecure
Example for POST
Including content body
curl -d "example content body" "http://localhost:8089/abc"
- With Authorization header field
Simple
Basiccurl -u myuser:mypw "https://localhost:8089/abc" --insecure
OAuth 2.0curl -H "Authorization: Bearer eyJraWQiOiJqZXR0eSIsImFsZyI6IlJTMjU2In0.eyJhdWQiOiJSaWVsbGUgQXBwIiwic2NvcGUiOiJzY29wZTIgc2NvcGUzIiwiaXNzIjoiZGlnaXRhbHJvdXRlIiwiZXhwIjoxNTEyNzA1NTQ3LCJpYXQiOjE1MTI3MDM3NDd9.ZRESO3VT4TvsiPdh5kFOwkNG7t3NjpN60_PJipcE5W-eceOf5PX_uphyjSO3yo9HAQVHt4cRlOaXvFDpeZvKjIyvVIrEGDtcXy3koPicevLwL9ivBTbC9q-LFof0ojqpbO5xypUVmCMYeRdLki7c1IbkDpVrWHj322JKFoL77wD6448pxyzZL6DVeByXIAiOCjalzoUEODwrJdEy0fQegqe-qMJWkDZp1FVPqe79XuLpK7dsUUhHOMryuHjBtC9KsvLENaN6F5VPoqG6htYPOADcDbGRC6OAgNEZfOFoRA2jk7QwnL9V58i_CkaktTz1rmFUjuK9CeeT-GAZKdIARw" "https://localhost:8089/abc" --insecure
Multi
curl -H "hello: how are ya" -H "hello: I am fine" -H "Authorization: Basic bWU6bXlwdw==, SomeOtherAuth blahbalhb, Bearer eyJraWQiOiJqZXR0eSIsImFsZyI6IlJTMjU2In0.eyJhdWQiOiJSaWVsbGUgQXBwIiwic2NvcGUiOiJzY29wZTIgc2NvcGUzIiwiaXNzIjoiZGlnaXRhbHJvdXRlIiwiZXhwIjoxNTEyNTQ5MTgwLCJpYXQiOjE1MTI1NDczODB9.WYuREVWAvotq5glWvUwY91nTs2i82vrSlS3Vsn8Io5NVN-UDbWrHscnw9GeXO6qn2OK6sWxKmp1ZbKgYSharsCgenE8tTkh0EnROygvq8Nf58pZw03weBgnKqC_ty9D4CKwko6jtMemTV3vCbI5vCjYXghB8UqsQEuTD91X6zDyXkOQm-rnuMDV0zCFvJSg81X76AF0HhiF5bN6AHvamshcqXAtuElWtq7QD_W-QCqW4eu--u-YgWRCuVeaP_E9bIV5A2vj2ouY6M7dj6As7l8pqwYdSF-6WF6NNKeAYHFQDlCeyXQ-UjMCsnIoNwNkQo-ZtNJpWmcgF19beOUU93A" "https://localhost:8089/abc/def?k1=v1&k1=v11&k2=v2" --insecure