URL: v3/api/logs/cron

Method: GET

Description : Gets the list of logs

Parameters:

Parameter Type Optional/Required Description
search_query string Optional String that has to be searched
sort_order string Optional Sort order `asc` or `desc`
sort_field string Optional Field by which results has to be sorted
limit string Optional Count of results that are required
category_ids array Optional Log Category Id by which results can be filtered
created_at_start string Optional Start time for created at
create_at_end string Optional End time for created at
cron_start_time_start string Optional Start of Start time of cron
cron_start_time_end string Optional SEnd

Response:

{

"success":true,

"data":{

"current_page":1,

"data":[{

"id":5,

"start_time":"2018-12-27 03:10:41",

"end_time":"2018-12-27 03:10:41",

"message":"message_one",

"created_at":"2018-12-27 03:10:41",

"category":{"id":13,"name":"test_category"}

},

{

"id":6,

"start_time":"2018-12-27 03:10:41",

"end_time":"2018-12-27 03:10:41",

"message":"message_two",

"created_at":"2018-12-27 03:10:41",

"category":{"id":13,"name":"test_category"}

}],

"first_page_url":"http:\/\/localhost:8000\/api\/logs\/mail?page=1,

"from":1,

"last_page":1,

"last_page_url":"http:\/\/localhost:8000\/api\/logs\/mail?page=1",

"next_page_url":null,

"per_page":10,

"prev_page_url":null,

"to":2,

"total":2

}

}

 

Tagged: