Smit exposes some of its data through a REST API, and others through the trigger API.
REST API:
POST /signin
Parameters:
username
: the user namepassword
: the passwordSyntax: application/x-www-form-urlencoded
Response:
sessid
: the session idREST API:
GET /<project>/issues
Returns a list of issues. Without any parameter, it returns all the issues.
Parameters
filterin
: get issues that have a specific property
:
valuefilterout
: get issues that do not have a specific property
filterin
search
: search some text through all messages and properties
colspec
: select which columns should be returned
sort
: sort against speficic columns. Several columns are allowed.
+
(ascending order) or -
(descending order)full
: display issues with their full contents. Value must be 1
format
: select format of response: html
(the default), text
, csv
Examples:
GET /things_to_do/issues?search=john&sort=-mtime&filterin=status:open
GET /things_to_do/issues?search=john&sort=-mtime&filterin=status:open?format=csv
REST API:
GET /<project>/issues/<id>
Parameters:
format
: select format of response: html
(the default), text
Examples:
GET /things_to_do/issues/543
GET /things_to_do/issues/89?format=text
REST API:
POST /<project>/issues/new
Parameters:
Files can be attached.
REST API:
POST /<project>/issues/<id>
Parameters:
Files can be attached.