Info

Created 25-02-2021 by Lavinia Gheghea

Revision



Description

The API allows you to  get team resources

Endpoints


GET:  /teamresources

Parameters
Headers and Query
 Name
 Description
 Type
 API-key - required
  Authorization Token
 String(64)
 UID - required
 UID -how can be obtained
 String
 DEVICEID - required
  DEVICEID
 String
 offset
 starting record
 Integer
 limit
 how many records displayed on a page
 Integer
 OrderFieldName
 field name to order the recordset
 String
 OrderDirection
 ASC or DESC
 String
 Filter
 filter the recordset
 String
 sAction
 Action
 String
Curl example

curl -X GET "https://smartapi.smarttid.dk/teamresources" -H "accept: */*" -H "UID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -H "DEVICEID:demo@smarttid.dk" -H "API-Key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Response

200 (OK) :array of team resources

Response body

{ "Type": "Employee", "Initials": "", "ResourceCode": "02", "DepartmentCode": "TEST", "Description": "02", "SubDescription": "ABC", "Color": "#f02be6" }, { "Type": "Employee", "Initials": "ACC", "ResourceCode": "021294", "DepartmentCode": "DENMARK", "Description": "Anna Christensen", "SubDescription": "Denmark2", "Color": "#cc5425" }, { "Type": "Employee", "Initials": "", "ResourceCode": "0808", "DepartmentCode": "", "Description": "Jacob Høgh Jensen", "SubDescription": null, "Color": "#f02be6" }, { "Type": "Employee", "Initials": "", "ResourceCode": "100", "DepartmentCode": "", "Description": "Poul Christensen", "SubDescription": null, "Color": null }, { "Type": "Employee", "Initials": "", "ResourceCode": "1000", "DepartmentCode": "DENMARK", "Description": "Poul Christensen", "SubDescription": "Denmark2", "Color": null }, ]


Response headers:
content-encoding: gzip 
 content-length: 238 
 content-type: application/json; charset=utf-8 
 date: Mon, 24 Aug 2020 08:01:23 GMT 
 server: Microsoft-IIS/10.0 
 vary: Accept-Encoding 
 x-pagination: {"totalCount":4,"totalFiltered":4,"Offset":0,"Limit":4,"Returned":4} 
 x-powered-by: ASP.NET 

400 (ERROR) : Error message

Response Body
Error message