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 2 Next »

openspecimen/rest/ng/users

or

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

Use this resource to get users. This API returns all the users 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/users

or

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


Use this URL to get users in openSpecimen application.

Result:

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

Below is the example of the get users:

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

Response

[{

    "id" : "1",
    "lastName":"Piterson",
    "firstName":"Sam",
    "loginName":"samPiterson"

},{

    "id" : "2",

    "lastName":"Mike",

    "firstName":"Hussey",

    "loginName":"mikeHussey"

}]

 

 

Error Cases :

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