http[data-colorid=h8w9c4c20d]{color:#4488aa} html[data-color-mode=dark] [data-colorid=h8w9c4c20d]{color:#5599bb}[data-colorid=yzy0zdw6qg]{color:#4488aa} html[data-color-mode=dark] [data-colorid=yzy0zdw6qg]{color:#5599bb}[data-colorid=iyrjc0lmzj]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=iyrjc0lmzj]{color:#ffac31}[data-colorid=v2smhav7rl]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=v2smhav7rl]{color:#ffac31}[data-colorid=b5u5so6ovm]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=b5u5so6ovm]{color:#ffac31}[data-colorid=odosrchnts]{color:#4488aa} html[data-color-mode=dark] [data-colorid=odosrchnts]{color:#5599bb}[data-colorid=ls50kkglrj]{color:#777777} html[data-color-mode=dark] [data-colorid=ls50kkglrj]{color:#888888}[data-colorid=sxjkwsyobe]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=sxjkwsyobe]{color:#ffac31}[data-colorid=axh6osxrvl]{color:#4488aa} html[data-color-mode=dark] [data-colorid=axh6osxrvl]{color:#5599bb}[data-colorid=bhhosyix04]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=bhhosyix04]{color:#ffac31}[data-colorid=oj96zlvk2z]{color:#4488aa} html[data-color-mode=dark] [data-colorid=oj96zlvk2z]{color:#5599bb}[data-colorid=otu5d82xlp]{color:#4488aa} html[data-color-mode=dark] [data-colorid=otu5d82xlp]{color:#5599bb}[data-colorid=gtzn240zym]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=gtzn240zym]{color:#ffac31}[data-colorid=s679brnem6]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=s679brnem6]{color:#ffac31}[data-colorid=srdbgk8s9h]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=srdbgk8s9h]{color:#ffac31}[data-colorid=fh04iaz79e]{color:#4488aa} html[data-color-mode=dark] [data-colorid=fh04iaz79e]{color:#5599bb}[data-colorid=kebtpqhuh8]{color:#4488aa} html[data-color-mode=dark] [data-colorid=kebtpqhuh8]{color:#5599bb}[data-colorid=h3nlyau6z3]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=h3nlyau6z3]{color:#ffac31}[data-colorid=qag4xzd3rj]{color:#4488aa} html[data-color-mode=dark] [data-colorid=qag4xzd3rj]{color:#5599bb}[data-colorid=y84wqk3072]{color:#4488aa} html[data-color-mode=dark] [data-colorid=y84wqk3072]{color:#5599bb}[data-colorid=klakxuv6cn]{color:#777777} html[data-color-mode=dark] [data-colorid=klakxuv6cn]{color:#888888}[data-colorid=yvdzr5lzhy]{color:#4488aa} html[data-color-mode=dark] [data-colorid=yvdzr5lzhy]{color:#5599bb}[data-colorid=tov02z8mni]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=tov02z8mni]{color:#ffac31}[data-colorid=wupkcal0uu]{color:#4488aa} html[data-color-mode=dark] [data-colorid=wupkcal0uu]{color:#5599bb}[data-colorid=fyvuedtkdf]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=fyvuedtkdf]{color:#ffac31}catissuecores]:<host>:<port>/openspecimen/rest/ng/sites
Use this resource to create new Site site in the caTissue applicationopenSpecimen application. Use HTTP POST method to call this API by passing the below details in JSONformatJSON format.
Below are the attributes which need to be sent in the request body:
Parameter | Details | ||
---|---|---|---|
namename | Name of the physical location. | ||
instituteName | Name of the institute which site is belongs to | ||
coordinatorCollectioncoordinators | Collection of user login namesobject. User Info contains Login Name through which user can login to catissue applicationName and Domain Name | ||
type | Type Function of the site. Permissible values are{ Collection Site,Repository,Laboratory,Not Specified It could be collection, storing, experimentation or it could be unspecified { collection site,repository,laboratory,not specified } | ||
activityStatus | Activity status of Defines the site, permissible values arestatus of a site record {active, closed, pending, disabled} | ||
streetaddress | Name Address of street to which the site belongs.city | Name of city to which the site belongs. | state [optional] | Name of the state to which the site belongs
...
http[s]:<host>:<port>/catissuecoreopenspecimen/rest/ng/sites
Use this URL to add site in caTissue openSpecimen application.
Result:
The response of this request will contains the details of the created site.
...
URL | http://<host>:<port>/ catissuecoreopenspecimen/rest/ng/sites | |||||||||||||
Method | POST | |||||||||||||
Request | application/json | |||||||||||||
json |
| { "name" : "Pune", "coordinatorCollection" : ["john@bjc.com","site_admin@washu.com"], "type" : "Collection Site", "activityStatus" : "Active", "street" : "SB Road", "city" : "Pune", "state" : "Maharashtra", "country" : "India" , "zipCode" : "412312", "faxNumber" : "123321", "phoneNumber" : "213434324" } | Response |
| ||||||||||
Response |
|
Error Cases :
code | Applies to | Status Message |
---|---|---|
200 | All resources | Site has been created successfully |
400 | All requests | Invalid parameters, e.g duplicate Site Name, blank Site Name, blank Site Type etc |
401 | All requests | Authorization failed, User user doesn't have Authority |
500 | All requests | Internal server error, Encountered server error while performing operations |