forked from wallabag/wallabag
Merge pull request #1070 from wallabag/v2-api-tests
1st draft for testing API
This commit is contained in:
@ -20,7 +20,7 @@ class WallabagRestController extends Controller
|
||||
* {"name"="username", "dataType"="string", "required"=true, "description"="username"}
|
||||
* }
|
||||
* )
|
||||
* @return string
|
||||
* @return array
|
||||
*/
|
||||
public function getSaltAction($username)
|
||||
{
|
||||
@ -33,7 +33,7 @@ class WallabagRestController extends Controller
|
||||
throw $this->createNotFoundException();
|
||||
}
|
||||
|
||||
return $user->getSalt();
|
||||
return array($user->getSalt() ?: null);
|
||||
}
|
||||
/**
|
||||
* Retrieve all entries. It could be filtered by many options.
|
||||
|
||||
Reference in New Issue
Block a user