Improved visits REST endpoint path

This commit is contained in:
Alejandro Celaya 2016-07-21 10:16:36 +02:00
parent 0ef9db0bdf
commit 3ba51c5390
2 changed files with 2 additions and 2 deletions

View file

@ -222,7 +222,7 @@ Posible errors:
**REQUEST** **REQUEST**
* `GET` -> `/rest/visits/{shortCode}` * `GET` -> `/rest/short-codes/{shortCode}/visits`
* Route params: * Route params:
* shortCode: `string` -> The shortCode from which we eant to get the visits. * shortCode: `string` -> The shortCode from which we eant to get the visits.
* Query params: * Query params:

View file

@ -30,7 +30,7 @@ return [
], ],
[ [
'name' => 'rest-get-visits', 'name' => 'rest-get-visits',
'path' => '/rest/visits/{shortCode}', 'path' => '/rest/short-codes/{shortCode}/visits',
'middleware' => Action\GetVisitsMiddleware::class, 'middleware' => Action\GetVisitsMiddleware::class,
'allowed_methods' => ['GET', 'OPTIONS'], 'allowed_methods' => ['GET', 'OPTIONS'],
], ],