eQuipAPI

<back to all web services

FindDepartments

Gets departments. This request ignores authorization restrictions.

The following routes are available for this service:
GET/departmentsGets departments. This request ignores authorization restrictions.
FindDepartments Parameters:
NameParameterData TypeRequiredDescription
ServicePrincipalApiKeyquerystringYesThe Api key that authorizes the caller to complete the request. Contact your eQuip admin.
PageSizequeryintNoNumber of departments to return. 0 returns all entries.
PageNumberqueryintNoThe page number to start retrieving data. 0 returns all entries.

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/FindDepartments HTTP/1.1 
Host: equipstage3.e-isg.com 
Content-Type: text/jsv
Content-Length: length

{
	PageSize: 0,
	PageNumber: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	DepartmentID: 0,
	DepartmentName: String,
	DepartmentCode: String,
	DepartmentDescription: String,
	WorkingHoursStart: String,
	WorkingHoursEnd: String,
	CreatedBy: 0,
	CreatedDate: 0001-01-01,
	UpdatedBy: 0,
	UpdatedDate: 0001-01-01
}