KronoDesk: REST Web Service
Resources
This table provides a list of all the resources exposed by this REST web service:
Resource | Methods | Description |
Product
|
GET
|
This resource lets you retrieve the list of products in the system
|
User
|
POST
,
GET
|
This resource lets you create users and retrieve a user by its id, email address or login
|
Ticket
|
POST
,
PUT
|
This resource lets you create tickets, add notes, update notes and update tickets
|
System
|
GET
|
This resource contains information on the overall product instance, including version and settings information
|
Document
|
POST
|
This resource lets you upload file attachments
|
Artifact
|
GET
|
This resource lets you retrieve artifact types and their associated information
|
Accessing Services
To access these REST web services, you need to use the following base URL:
https://api.inflectra.com/KronoDesk/Services/v1_0/RestService.svc/
You can specify the format of data that will be returned (XML or JSON) by passing the following HTTP Headers:
-
Content-Type: application/xml - Sends data in XML format
-
accept: application/xml - Returns data in XML format
-
Content-Type: application/json - Sends data in JSON format
-
accept: application/json - Returns data in JSON format
To authenticate with the web service there are three methods:
-
Pass in the username and api-key using the standard HTTP basic authentication header:
Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXX
where XXXXXXXXXXXXXXXXXXXXXXXXXX is username:api-key base64 encoded
-
Pass in the username application API-Key using the username and api-key HTTP headers:
username: fredbloggs
api-key: {XXXXXXXXXXXXXXXX}
-
Append the username and application API-Key as an extra querystring parameter:
?username=fredbloggs&api-key={XXXXXXXXXXXXXXXX}
Finally if you need to call one of the GET methods from a web page in another domain
you need to use the special JSONP (JSON with Padding) syntax. This tells the web service to return
the data in the form of a JavaScript <script> tag so that it be can be called across web site domains safely.
To request the data in JSONP format, just add the following extra querystring parameter:
?callback=[name of callback function]
Product
User
Ticket
System
Document
Artifact