Merge pull request #1070 from wallabag/v2-api-tests

1st draft for testing API
This commit is contained in:
Jeremy
2015-02-12 08:50:06 +01:00
2 changed files with 151 additions and 2 deletions

View File

@ -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.