Added option to filter by date in visits REST endpoint

This commit is contained in:
Alejandro Celaya
2016-07-21 10:13:09 +02:00
parent bdd2d6f8b2
commit 0ef9db0bdf
2 changed files with 22 additions and 2 deletions

View File

@@ -225,6 +225,9 @@ Posible errors:
* `GET` -> `/rest/visits/{shortCode}`
* Route params:
* shortCode: `string` -> The shortCode from which we eant to get the visits.
* Query params:
* startDate: `string` -> If provided, only visits older that this date will be returned
* endDate: `string` -> If provided, only visits newer that this date will be returned
* Headers:
* X-Auth-Token: `string` -> The token provided in the authentication request