| All Verbs | /GetAllSites/{UserID} | ||
|---|---|---|---|
| All Verbs | /GetAllSites/{UserID}/{MobileSite} | ||
| GET | /sites | Returns all sites. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| UserID | Guid | string | Yes | The UserID that authorizes the caller to complete the request. Contact your eQuip admin. |
| MobileSite | bit | string | No | True to return sites authorized for mobile operations. |
| PageOffset | query | int | No | The page offset to start retrieving data. 0 returns all entries. |
| PageSize | query | int | No | Number of entries to return. 0 returns all entries. |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /json/reply/GetAllSites HTTP/1.1
Host: equipstage2.e-isg.com
Content-Type: application/json
Content-Length: length
{"UserID":"String","MobileSite":false,"PageOffset":0,"PageSize":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"SiteCode":"String","SiteDescription":"String","SiteIDInternal":"String","SiteName":"String","CreatedBy":0,"CreatedDate":"\/Date(-62135596800000-0000)\/","UpdatedBy":0,"UpdatedDate":"\/Date(-62135596800000-0000)\/"}