openspecimen/rest/ng/collection-protocolsprotocol-events?cpId={cpId}
Use this resource to get collection protocol Events. This API returns all the matching collection protocols based on the collection protocol id in the openSpecimen application.
...
Below are the attributes which need to be sent in the request body:
Parameter | Details |
---|---|
cpId | Collection protocol id |
http[s]:<host>:<port>/openspecimen/rest/ng/collection-protocol-events?cpId={cpId}
Use this URL to get collection protocols in openSpecimen application.
Result:
The response of this request will contains the details of the collection protocols.
Below is the example of the get all collection protocols:
URL | http://<host>:<port>/ openspecimen/rest/ng/collection-protocol-events?cpId=1 | |||||||||
Method | GET | |||||||||
Response |
|
Error Cases :
code | Applies to | Status Message |
---|---|---|
200 | All resources | Collection protocol Events got successfully |
401 | All requests | Authorization failed, user doesn’t have authority |
500 | All requests | Internal server error, encountered server error while performing operations |