Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

openspecimen/rest/ng/collection-protocols

...

openspecimen/rest/ng/collection-protocols?start={start}&max={maxResults}&searchStringquery={searchString}&countReq={true/false}

...

Below are the attributes which need to be sent in the request body:

Whether to return the CP's as per user's privileges.  By default this API will return list of CP's on which user actually has access. If need all CP's then set this attribute to false.
Parameter
Details
chkPrivilege [optional]
searchString [optional]The value with which you want to search the collection protocol. The given value will be matched with Title and Short Title.
start [optional]start index of the results
maxResults [optional]Maximum number of records to fetch. By default it will be 1000
countReq [optional]Set this parameter to true, if want to get the total count of matching results.

...

URLhttp://<host>:<port>/openspecimen/rest/ng/collection-protocols?searchString=skinCancerStudy
MethodGET
Requestapplication/json

Response

[{
id1
shortTitle"SCS_CP"
title"skinCancerStudy"
ppidFormat" "
}] 

 

 

Error Cases :

code
Applies to
Status Message
200All resourcesCollection protocols got successfully
401All requestsAuthorization failed, user doesn’t have authority
500All requestsInternal server error, encountered server error while performing operations