@@ -17,7 +17,7 @@ class AttemptsController extends ApiController
...
@@ -17,7 +17,7 @@ class AttemptsController extends ApiController
/**
/**
* Get Attempts
* Get Attempts
*
*
* This route filters attempts based off of starting date, ending date, or door location.
* This route filters attempts based off of starting date, ending date, or door id.
* If only start is supplied, all attempts after the start date are given. If only end
* If only start is supplied, all attempts after the start date are given. If only end
* is supplied, all attempts before the start date are given. If both dates are supplied,
* is supplied, all attempts before the start date are given. If both dates are supplied,
* all attempts between the given dates are returned. This route is paginated.
* all attempts between the given dates are returned. This route is paginated.
...
@@ -26,9 +26,9 @@ class AttemptsController extends ApiController
...
@@ -26,9 +26,9 @@ class AttemptsController extends ApiController
* @paginated
* @paginated
* @queryParam start The beginning date to filter attempts by. Example: 2000-06-02 08:11:45
* @queryParam start The beginning date to filter attempts by. Example: 2000-06-02 08:11:45
* @queryParam end The ending date to filter attempts by. Example: 2920-06-02 08:11:45
* @queryParam end The ending date to filter attempts by. Example: 2920-06-02 08:11:45
* @queryParam door_location The door location to filter on. Example: The Amazon
* @queryParam door_id The door id to filter on. Example: 1
*
*
* @response 422 {"message":"The given data was invalid.","errors":{"start":["The start is not a valid date."],"end":["The end is not a valid date."],"door_location":["The door location must be a string."]}}
* @response 422 {"message":"The given data was invalid.","errors":{"start":["The start is not a valid date."],"end":["The end is not a valid date."],"door_id":["The door id must be an integer."]}}
@@ -25,10 +25,10 @@ class EntriesController extends ApiController
...
@@ -25,10 +25,10 @@ class EntriesController extends ApiController
* @paginated
* @paginated
* @queryParam start The beginning date to filter entries by. Example: 2000-06-02 08:11:45
* @queryParam start The beginning date to filter entries by. Example: 2000-06-02 08:11:45
* @queryParam end The ending date to filter entries by. Example: 2920-06-02 08:11:45
* @queryParam end The ending date to filter entries by. Example: 2920-06-02 08:11:45
* @queryParam door_id The door id to filter entries on. Example: Amazon
* @queryParam door_id The door id to filter entries on. Example: 1
* @queryParam user_id The user id to filter entries on. Example: 420
* @queryParam user_id The user id to filter entries on. Example: 420
*
*
* @response 422 {"message":"The given data was invalid.","errors":{"start":["The start is not a valid date."],"end":["The end is not a valid date."],"door_location":["The door location must be a string."],"user_id":["The user id must be an integer."]}}
* @response 422 {"message":"The given data was invalid.","errors":{"start":["The start is not a valid date."],"end":["The end is not a valid date."],"door_id":["The door id must be an integer."],"user_id":["The user id must be an integer."]}}