BPM, Workflow, and Case

 View Only

How to run RestCalls with Session/Cookies

  • 1.  How to run RestCalls with Session/Cookies

    IBM Champion
    Posted 16 days ago

    Hello Team,

    I'm currently having the callange on a RestInterface i need to integrate.

    It is setup in a way the auth is keeping a session open and a second call will need to use this open session.

    I got it running via curl.

    curl -k -X POST "https://********/api/rest/v3/auth" -H  "accept: application/json" -H  "Content-Type: application/json" -d "{  \"username\": \"***\",  \"password\": \"***\"}" -c cookies.txt
    curl  -k -X GET -b cookies.txt "https://********/rest/v3/storage/******/filter" -H  "accept: application/json"

    Did anyone of you impelement something like that on BAW? And how did you achieve this?



    ------------------------------
    Alexander Pross
    ------------------------------