Contains API calls that can be used against the Departments.

1.Get Departments

Returns a list of all departments for a specific company.In order to access this endpoint ensure that you do a GET request with an Authorization header containing your access token.

Headers:
Authorization : {token}

Result codes

403 Forbidden
200 OK
400 Bad request
500 Internal server error

Response

[
	{
		"Id":8,
		"Name":"Marketing"
	},
	{
		"Id":14,
		"Name":"Engineering"
	},
	{
		"Id":16,
		"Name":"Sales"
	},
	{
		"Id":32,
		"Name":"Information Technology"
	},
	{
		"Id":44,
		"Name":"Finance"
	}
]