I was trying to automate the Clearpass REST APIs using AssistEdge Community Editon 17.5. The activity which I used is “API Activity”. Below is my request URL, header and parameter body.
Request URL : https://cppm-trp-e313.eng.austtx.attwifi.com:443/api/oauth
(Basically a post request “POST /api/oauth”)
Header : Content-Type: application/json
Below are the steps which I followed in AE and screenshots of my configurations in AssistEdge:
Created a new Web API application named “ClearpassAPI” with Login URL “https://cppm-trp-e313.eng.austtx.attwifi.com:443/” and type as “REST”
Created a new process named “ClearpassAPITest” by dragging API Activity under Start button. The application selected in API activity is “ClearpassAPI” and API selected is “api/oauth”. Below provided screenshot. Method used is POST and declared an output argument “response” which is of type string.
As my REST API has header and Body parameters to pass, I have defined “Headers” and “Parameter Mappings” in Settings like below:
Note: I was not allowed to upload multiple images as I am a new user, hence uploading all screenshots as one image below.
But when I run the test, it says “The server returned an error, (404) Not Found”. Could you please help me to resolve this error and help me to proceed?