GET openspecimen/rest/ng/distribution-protocols
Use this resource to get all distribution protocols. This API returns all the distribution protocols present in the OpenSpecimen application.
Use HTTP GET method to call this API by passing the below details in JSON format.
Below are the attributes which can to be sent in the request body to filter distribution protocols:
Parameter | Details |
---|---|
query | query parameter used to match distribution protocols based on title or short title |
title | title parameter used to match distribution protocols based on title |
piId | user id of the principal investigator |
receivingInstitute | name of receiving institute in distribution protocol |
cp | short title of collection protocol for which the distribution protocol can be used. |
startAt | starting record number to fetch from. By default it will be 0 |
maxResults | maximum number of records to fetch. By default it will be 100 |
includeStats | boolean value to also get distribution protocol statistics |
excludeExpiredDps | boolean value if set true then result will not include expired distribution protocols |
http[s]:<host>:<port>/openspecimen/rest/ng/distribution-protocols
Use this URL to get distribution protocols in OpenSpecimen application.
Result:
The response of this request will contains the details of the distribution protocols.
Below is the example of the get distribution-protocols:
URL |
|
Method | GET |
Request | application/json |
Response | [
|
Error Cases :
code | Applies to | Status Message |
---|---|---|
200 | All resources | distribution protocols got successfully |
401 | All requests | Authorization failed, user doesn’t have authority |
500 | All requests | Internal server error, encountered server error while performing operations |