mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-05 18:41:02 +00:00
Re-create all API routes
This commit is contained in:
parent
2efb990a14
commit
27e788d0be
12 changed files with 82 additions and 20 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue