3 namespace Wallabag\ApiBundle\Controller
;
5 use Nelmio\ApiDocBundle\Annotation\ApiDoc
;
6 use Symfony\Bundle\FrameworkBundle\Controller\Controller
;
7 use Wallabag\CoreBundle\Entity\Entries
;
8 use FOS\RestBundle\Controller\Annotations\Get
;
9 use Wallabag\CoreBundle\Entity\Users
;
11 class EntryController
extends Controller
14 * Fetch an entry for a given user
16 * @Get("/u/{user}/entry/{entry}")
19 * {"name"="user", "dataType"="string", "requirement"="\w+", "description"="The username"},
20 * {"name"="entry", "dataType"="integer", "requirement"="\w+", "description"="The entry ID"}
25 public function getAction(Users
$user, Entries
$entry)