Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 8 Next »

openspecimen/rest/ng/institutes

or

openspecimen/rest/ng/institutes?maxResults={maxResults}

Use this resource to get institutes. This API returns all the institutes present in the openSpecimen application. User can also specify the search string which will be used to match the values.

Use HTTP GET method to call this API by passing the below details in JSON format.

 

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

Parameter
Details
maxResultsmaximum number of records to fetch. By default it will be 1000


http[s]:<host>:<port>/openspecimen/rest/ng/institutes

or

http[s]:<host>:<port>/openspecimen/rest/ng/institutes?maxResults={maxResults}


Use this URL to get institutes in openSpecimen application.

Result:

The response of this request will contains the details of the institutes.

Below is the example of the get institutes:

URLhttp://<host>:<port>/openspecimen/rest/ng/institutes
MethodGET
Requestapplication/json

Response

[{

    "id" : "1",

    "name":"INSTITUTE OF OKLAHOMA"

},{

    "id" : "2",

    "name":"AKU HBRC",

}]

 

 

Error Cases :

code
Applies to
Status Message
200All resourcesInstitutes got successfully
401All requestsAuthorization failed, User doesn’t have authority
500All requestsInternal server error, Encountered server error while performing operations
  • No labels