Leave a comment at the end of this page or email contact@krishagni.com
Get Collection Protocol
openspecimen/rest/ng/collection-protocols/{id}
Use this resource to get collection protocol. This API returns the collection protocol present in the openSpecimen application of given id.
Below are the attributes which need to be sent in the URL:
Parameter | Details |
---|---|
id | Collection protocol id to fetch the collection protocol |
http[s]:<host>:<port>/openspecimen/rest/ng/collection-protocols/{id}
Use this URL to get collection protocol by an id in openSpecimen application
Result:
The response of this request will contains the details of the collection protocol.
Below is the example of the get collection protocol:
URL |
|
Method | GET |
Request | application/json |
Response | { "id": 1, "shortTitle": "VCB Collection", "title": "VCB Collection", "code": null, "principalInvestigator": { "id": 104, "firstName": "Paleracio", "lastName": "Nina", "loginName": "ninapaleracio", "domain": null, "emailAddress": null, "admin": null, "cpCount": 0, "creationDate": null }, "startDate": 1435602600000, "endDate": null, "ppidFmt": "", "manualPpidEnabled": false } |
Error Cases :
code | Applies to | Status Message |
---|---|---|
200 | All resources | Collection protocol got successfully |
401 | All requests | Authorization failed, user doesn’t have authority |
500 | All requests | Internal server error, encountered server error while performing operations |
Leave a comment at the end of this page or email contact@krishagni.com