http[data-colorid=oymp5z864o]{color:#4488aa} html[data-color-mode=dark] [data-colorid=oymp5z864o]{color:#5599bb}[data-colorid=uqskymljjj]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=uqskymljjj]{color:#ffac31}[data-colorid=roigdl7occ]{color:#4488aa} html[data-color-mode=dark] [data-colorid=roigdl7occ]{color:#5599bb}[data-colorid=ylztkyc66t]{color:#777777} html[data-color-mode=dark] [data-colorid=ylztkyc66t]{color:#888888}[data-colorid=om4xppoiwj]{color:#4488aa} html[data-color-mode=dark] [data-colorid=om4xppoiwj]{color:#5599bb}[data-colorid=g0lgww8ud1]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=g0lgww8ud1]{color:#ffac31}[data-colorid=rk30rcxn8c]{color:#4488aa} html[data-color-mode=dark] [data-colorid=rk30rcxn8c]{color:#5599bb}[data-colorid=d5mecyd0u1]{color:#4488aa} html[data-color-mode=dark] [data-colorid=d5mecyd0u1]{color:#5599bb}[data-colorid=fewrv97lcz]{color:#4488aa} html[data-color-mode=dark] [data-colorid=fewrv97lcz]{color:#5599bb}[data-colorid=pjdildaiyp]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=pjdildaiyp]{color:#ffac31}[data-colorid=yq0ww00dks]{color:#4488aa} html[data-color-mode=dark] [data-colorid=yq0ww00dks]{color:#5599bb}[data-colorid=uf436u8gkw]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=uf436u8gkw]{color:#ffac31}[data-colorid=e87uz0vy39]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=e87uz0vy39]{color:#ffac31}[data-colorid=vmcu7a8t2x]{color:#4488aa} html[data-color-mode=dark] [data-colorid=vmcu7a8t2x]{color:#5599bb}[data-colorid=u4zql8g0ku]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=u4zql8g0ku]{color:#ffac31}[data-colorid=fq6szkwi46]{color:#4488aa} html[data-color-mode=dark] [data-colorid=fq6szkwi46]{color:#5599bb}[data-colorid=vw8mjfwerq]{color:#777777} html[data-color-mode=dark] [data-colorid=vw8mjfwerq]{color:#888888}[data-colorid=js47fljadc]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=js47fljadc]{color:#ffac31}[data-colorid=hkpca1vc8p]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=hkpca1vc8p]{color:#ffac31}[data-colorid=jjccmwv9u7]{color:#4488aa} html[data-color-mode=dark] [data-colorid=jjccmwv9u7]{color:#5599bb}[data-colorid=b26en7aljf]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=b26en7aljf]{color:#ffac31}[data-colorid=w9xcfeta54]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=w9xcfeta54]{color:#ffac31}[data-colorid=evocv0mdj6]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=evocv0mdj6]{color:#ffac31}[data-colorid=bqd88shiov]{color:#4488aa} html[data-color-mode=dark] [data-colorid=bqd88shiov]{color:#5599bb}[data-colorid=fgikf0v1r8]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=fgikf0v1r8]{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{ 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" : "Pune101", "coordinatorCollection" : ["john@bjc.com","site_admin@washu.com"], "type" : "Collection Site", "activityStatus" : "Active", "street" : "SB Road", "city" : "Pune", "state" : "MH", "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 doesn’t user doesn't have Authority |
500 | All requests | Internal server error, Encountered server error while performing operations |