You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Next »
This page provides the APIs for the OC call; by calling these APIs, you can find out how much time the API call takes for a specific study. Follow the below steps to run the APIs.
Invoke API to get the token.
Click to expand
curl -X POST --data '{"username": "demo_username", "password": "demo_password"}' -H "Content-Type: application/json" https://qlhc2.build.openclinica.io/user-service/api/oauth/token
https://qlhc2.build.openclinica.io
will be OpenClinica server URL.
Note: Every time, you will get a new token when you run the auth API.
2. Use the token and invoke data API to get the study data
Click to expand
curl -X GET -H "Accept: application/xml" -H "Authorization: Bearer #1step_token" "https://qlhc2.openclinica.io/OpenClinica/pages/auth/api/clinicaldata/S_ISPY(TEST)/*/*/*?includeAudits=y&includeDNs=n&includeMedtadata=y&showArchived=n"
S_ISPY(TEST)
will be the study OID from the OpenClinica.
After running the data API you will get the idea how much time does it take to invoke the study data.