Got feedback or spotted a mistake?

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

Get Specimen Event Forms

openspecimen/rest/ng/forms?formType=specimenEvent

Use this resource to get the list of all the specimen event forms available in the openSpecimen application.

Use HTTP GET method to call this API.

http[s]:<host>:<port>/openspecimen/rest/ng/forms?formType=specimenEvent

 

Result:

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

Below is the example of the get specimens:

URLhttp://<host>:<port>/openspecimen/rest/ng/forms?formType=specimenEvent
MethodGET
Requestapplication/json

Response

[{"formId":6,"name":"SpecimenCellReviewEvent","caption":"Cell Review Event",
"createdBy":{"id":1,"firstName":"Admin","lastName":"Admin","loginName":null},
"creationTime":1415173522000,"modificationTime":1415173522000,"cpCount":-1,"sysForm":false}]

 

Response details:

AttributeDescription
formIdSystem Identifier of the form. This is referred as form context Id
nameSystem name of the form.
captionName which will be displayed on UI
createdByOwner of the form
creationTime(in miliseconds)Time when the form is created
modificationTime(in miliseconds)Time when the form is last modified
cpCount

The count of CP's with which this form is associated.

-1 specified that this form is available for all CP's

 

Error Cases :

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


Got feedback or spotted a mistake?

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