get https://sandbox.link.kiban.com/api/v2/cc_pm/query
Intro
With this API you can get all the executions made to the CC PM Query service.
Important Points
Pagination Parameters
The next two pagination parameters are mandatory to do the request.
- itemsPerPage, number of items by page, should be an integer between [1, 1000]
- page, the page index, should be an integer greater than 0
The next two parameters are required if you want to filter by a period:
- from
- to
Both parameters are a string date and the format must comply with format ISO 8601.
Errors
The next errors can be returned if there is a problem with the request body or the execution of this service:
Errors by required field:
[
{
"message": "ERROR_QUERY_PARAM_EMPTY",
"field": "page"
},
{
"message": "ERROR_QUERY_PARAM_EMPTY",
"field": "itemsPerPage"
}
]
Errors by an incorrect format:
[
{
"message": "should be integer value, > 0",
"field": "page"
},
{
"message": "should be integer value, [1, 1000]",
"field": "itemsPerPage"
},
{
"message": "invalid date format. The format must comply with format ISO 8601",
"field": "from"
},
{
"message": "invalid date format. The format must comply with format ISO 8601",
"field": "to"
}
]
Response
Kiban will return a list of items with the next structure:
{
"currentPage": 1,
"hasNextPage": false,
"items": [
{
"id": "662c094b817fc8afbfc7f213",
"createdAt": "2024-04-26T20:06:35.724Z",
"finishedAt": "2024-04-26T20:06:36.069Z",
"duration": 345169733,
"status": "SERVICE_ERROR"
},
{
"id": "662c0855817fc8afbfc7f1f2",
"createdAt": "2024-04-26T20:02:29.441Z",
"finishedAt": "2024-04-26T20:02:29.882Z",
"duration": 441926289,
"status": "SUCCESS"
},
{
"id": "662c0830817fc8afbfc7f1e8",
"createdAt": "2024-04-26T20:01:52.929Z",
"finishedAt": "2024-04-26T20:01:53.327Z",
"duration": 397227276,
"status": "SERVICE_ERROR"
},
{
"id": "662c0712817fc8afbfc7f1dc",
"createdAt": "2024-04-26T19:57:06.474Z",
"finishedAt": "2024-04-26T19:57:06.695Z",
"duration": 221283382,
"status": "SUCCESS",
"errorMessage": ""
}
]
}
- currentPage, the actual recovered page
- hasNextPage, indicate if there are more pages
- items, list of items in the request
- id, identifier of the request.
- createdAt, date time with the exact moment of creation.
- finishedAt, date time with the exact moment of finalization.
- duration, indicates how long it took to execute the service.
- status, status of the request