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 »

caTissue REST API

The purpose of this document is to explain the caTissue REST API to be used for communicating with other applications. caTissue expose REST API for performing add/update/search operation on Specimen, SpecimenCollectionGroup and creating aliquots/derivatives for the parent specimen.

Common Characteristics of REST Resources

The following characteristics apply to all caTissue API resources:

  • You access a resource by sending an HTTP request to the caTissue server. The server replies with a response that either contains the data you requested, or a status indicator, or both.
  • All resources are located at http[s]://<host-name>:<port>/catissuecore/rest.
  • You request a particular resource by appending a particular path to this base URL that specifies the resource.
  • All resources may return any of the below mentioned status codes:
codeApplies toStatus Message
200All resources 
201All POST/PUT requestsResource created/updated successfully
400All requestsInvalid parameters
401All requestsAuthorization failed
403All requests 
404All requestsResource not found
500All requestsInternal server error
  • On this page, when a portion of a URL, path, or parameter value is shown in italics, this indicates that you should replace the italicized value with a particular value appropriate to your request.

List of resources which are accessible through REST

Specimen Resource

catissuecore/rest/specimens

Creates the specimen object.

Request

MethodURL
POSTcatissuecore/rest/specimens
accept

application/json

{"label":"testLabel","className":"Tissue","type":"Not Specified","barcode":"12345","createdDate":"Jul 31, 2013 11:16:14 AM","availableQuantity":2.0,"activityStatus":"Active","isToPrintLabel":false}

Response 

StatusResponse
201

application/json

{"id":1,"label":"testLabel","className":"Tissue","type":"Not Specified","barcode":"12345","createdDate":"Jul 31, 2013 11:16:14 AM","availableQuantity":2.0,"activityStatus":"Active","isToPrintLabel":false}

403{"error":"User is not authorized to create the specimens"}
500{"error" : "Something went wrong. please try again later"}


You use the following resource path to add/update the Specimen resource. To access a resource, append the resource path to the base URL. For example, to use the specimens resource, access

http[s]://<host>:<port>/catissuecore/rest/specimens

  • No labels