mirror of
https://github.com/cydrobolt/polr.git
synced 2024-11-09 11:42:28 +01:00
Ensure proper data type is passed to \Validator in lookup endpoint
This commit is contained in:
parent
ca5341b046
commit
3a14174427
@ -43,7 +43,7 @@ class ApiLinkController extends ApiController {
|
||||
$user = self::getApiUserInfo($request);
|
||||
|
||||
// Validate URL form data
|
||||
$validator = \Validator::make($request, [
|
||||
$validator = \Validator::make($request->all(), [
|
||||
'url_ending' => 'required|alpha_dash'
|
||||
]);
|
||||
|
||||
|
@ -94,7 +94,7 @@ Arguments:
|
||||
|
||||
Remember that the `url` argument must be URL encoded.
|
||||
|
||||
Example: GET `http://example.com/api/v2/action/lookup?key=API_KEY_HERE&ending=2`
|
||||
Example: GET `http://example.com/api/v2/action/lookup?key=API_KEY_HERE&url_ending=2`
|
||||
Response:
|
||||
```
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user