Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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:

Name of the state to which the site belongs
Parameter
Details
namename Name of the physical location.
instituteNameName 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}

streetaddressName Address of street to which the site belongs.
cityName of city to which the site belongs.
state [optional]

 

...

 

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.

...

 

{

name"Pune101"
coordinatorCollection[2]
0:  "john@bjc.com" 
1:  "site_admin@washu.com"
siteId48
type"Collection Site"
activityStatus"Active"
street"SB Road"
city"Pune"
state"MH"
country"India"
zipCode"412312"
faxNumber"123321"
phoneNumber"213434324"
URLhttp://<host>:<port>/catissuecoreopenspecimen/rest/ng/sites
MethodPOST
Requestapplication/json
json
Code Block
languagejs
theme
{

"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

Eclipse
linenumberstrue
{
    "name": "Arkansas Hospital",
    "instituteName": "A1 - For Demo Users",
    "type": "Collection Site",
    "activityStatus": "Active",
    "coordinators":
    [
        {
            "loginName": "aalfortish",
            "domain": "openspecimen"
        },
        {
            "loginName": "vinod",
            "domain": "openspecimen"
        }
    ],
    "address": "Arkansas"
}

Response

Code Block
languagejs
themeEclipse
linenumberstrue
{
    "id": 4,
    "name": "Arkansas Hospital",
    "instituteName": "A1 - For Demo Users",
    "type": "Collection Site",
    "activityStatus": "Active",
    "cpCount": 0,
    "coordinators":
    [
        {
            "id": 107,
            "firstName": "Alexandra",
            "lastName": "Alfortish",
            "loginName": "aalfortish",
            "domain": "openspecimen",
            "emailAddress": "aalfortish@lcrc.info",
            "admin": false,
            "cpCount": 0,
            "creationDate": 1438021800000
        },
        {
            "id": 14,
            "firstName": "Vinod",
            "lastName": "Gaikwad",
            "loginName": "vinod",
            "domain": "openspecimen",
            "emailAddress": "vinod.gaikwad@domain.com",
            "admin": false,
            "cpCount": 0,
            "creationDate": null
        }
    ],
    "address": "Arkansas",
}

 

Error Cases :

code
Applies to
Status Message
200All resourcesSite has been created successfully
400All requestsInvalid parameters, e.g  duplicate Site Name, blank Site Name, blank Site Type etc
401All requestsAuthorization failed, User doesn’t user doesn't have Authority
500All requestsInternal server error, Encountered server error while performing operations