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 page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

openspecimen/rest/ng/institutes/{id}

or

openspecimen/rest/ng/institutes/name={name}

 

Use this resource to get institute . This API returns the institute present in the openSpecimen application of given name and id. 

Below are the attributes which need to be sent in the url :

Parameter
Details
idInstitute id to fetch the institute
nameInstitute name to fetch the institute


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

or

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


Use this URL to get institute by an id in openSpecimen application.

Result:

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

Below is the example of the get institute:

URL

http://<host>:<port>/openspecimen/rest/ng/institutes/1

or

http://<host>:<port>/openspecimen/rest/ng/institutes/name=Institute of Oklahoma

MethodGET
Requestapplication/json

Response

{

    "id" : "1",

    "name":"Institute of Oklahoma"

}

 

Error Cases :

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