...
Code Block |
---|
language | js |
---|
firstline | 1 |
---|
linenumbers | true |
---|
|
GET /api/v1/report/denialsfeature/${featureId}/denials/${returnType}?sd=${startDate}&ed=${endDate}&(additional parameters, as needed) |
...
Code Block |
---|
language | js |
---|
firstline | 1 |
---|
linenumbers | true |
---|
|
curl --data "sd=2015-01-01" --data "ed=2015-01-02" -H "X-Auth-token: token" "http://yourdomain/api/v1/report/denialsfeature/3/denials/json" |
Example 2
Let's assume you want to see all denials for feature 3 ordered by username over a specific period of time. To do this, enter a command similar to the following:
Code Block |
---|
language | js |
---|
firstline | 1 |
---|
linenumbers | true |
---|
|
curl --data "orderBy=un" --data "orderDirection=ASC" --data "sd=2015-01-01" --data "ed=2015-01-02" -H "X-Auth-token: token" "http://yourdomain/api/v1/report/denialsfeature/3/denials/json" |
Example 3
Let's assume you're interested in viewing the first 100 denials for feature 3 over a specific period of time. To do this, enter a command that is similar to the following:
Code Block |
---|
language | js |
---|
firstline | 1 |
---|
linenumbers | true |
---|
|
curl --data "limit=100" --data "offset=0" --data "sd=2015-01-01" --data "ed=2015-01-02" -H "X-Auth-token: token" "http://yourdomain/api/v1/report/denialsfeature/3/denials/json" |
Keep in mind that you can also put parameters directly in the URL, f.e for an equivalent of the above:
Code Block |
---|
language | js |
---|
firstline | 1 |
---|
linenumbers | true |
---|
|
curl -H "X-Auth-token: token" "http://yourdomain/api/v1/report/denialsfeature/3/denials/json?limit=100&offset=0&sd=2014-12-01&ed=2015-01-02" |
...
Code Block |
---|
language | js |
---|
firstline | 1 |
---|
linenumbers | true |
---|
|
GET /api/v1/report/denials/groupedfeature/${featureId}/denials/grouped/${returnType}?sd=${startDate}&ed=${endDate}&(additional parameters, as needed) |
...
Code Block |
---|
language | js |
---|
firstline | 1 |
---|
linenumbers | true |
---|
|
curl --data "sd=2015-01-01" --data "ed=2015-01-02" --data "grat=3" -H "X-Auth-token: token" "http://yourdomain/api/v1/report/feature/3/denials/grouped/3/json" |
Example 2
Let's assume you want to see all denials for feature 3, grouped by quarter, ordered by total denial count from highest to lowest. To do this, enter a command similar to the following:
Code Block |
---|
language | js |
---|
firstline | 1 |
---|
linenumbers | true |
---|
|
curl --data "orderBy=ldtc" --data "orderDirection=DESC" --data "sd=2014-01-01" --data "ed=2015-01-01" --data "grat=2" -H "X-Auth-token: token" "http://yourdomain/api/v1/report/feature/3/denials/grouped/3/json" |
Example 3
Let's assume you're interested in viewing the first 100 denials for feature 3 over a specific period of time, grouped by hour. To do this, enter a command that is similar to the following:
Code Block |
---|
language | js |
---|
firstline | 1 |
---|
linenumbers | true |
---|
|
curl --data "limit=100" --data "offset=0" --data "sd=2013-01-01" --data "ed=2015-01-02" --data "grat=6" -H "X-Auth-token: token" "http://yourdomain/api/v1/report/feature/3/denials/grouped/3/json" |
Similarly as in the case of checkout denials, you can also put parameters directly in the URL, f.e for an equivalent of the above:
Code Block |
---|
language | js |
---|
firstline | 1 |
---|
linenumbers | true |
---|
|
curl -H "X-Auth-token: token" "http://yourdomain/api/v1/report/feature/3/denials/grouped/3/json?limit=5&offset=2&sd=2013-01-01&ed=2015-01-02&grat=6" |