forked from wallabag/wallabag
Re-create all API routes
This commit is contained in:
@ -13,6 +13,7 @@ use Swagger\Annotations as SWG;
|
||||
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
||||
use Symfony\Component\HttpFoundation\JsonResponse;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
use Symfony\Component\Translation\TranslatorInterface;
|
||||
use Wallabag\ApiBundle\Entity\Client;
|
||||
use Wallabag\UserBundle\Entity\User;
|
||||
@ -32,6 +33,8 @@ class UserRestController extends WallabagRestController
|
||||
* )
|
||||
* )
|
||||
*
|
||||
* @Route("/api/user.{_format}", methods={"GET"}, name="api_get_user", defaults={"_format": "json"})
|
||||
*
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function getUserAction()
|
||||
@ -83,6 +86,8 @@ class UserRestController extends WallabagRestController
|
||||
*
|
||||
* @todo Make this method (or the whole API) accessible only through https
|
||||
*
|
||||
* @Route("/api/user.{_format}", methods={"PUT"}, name="api_put_user", defaults={"_format": "json"})
|
||||
*
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function putUserAction(Request $request)
|
||||
|
||||
Reference in New Issue
Block a user