]>
Commit | Line | Data |
---|---|---|
e4788de5 NL |
1 | <?php |
2 | ||
3 | namespace Wallabag\CoreBundle\Controller; | |
4 | ||
5 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; | |
6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
7 | use Wallabag\CoreBundle\Entity\Entries; | |
8 | ||
9 | class ApiController extends Controller | |
10 | { | |
11 | /** | |
12 | * @ApiDoc( | |
13 | * resource=true, | |
14 | * description="This is a demo method. Just remove it", | |
15 | * ) | |
16 | */ | |
17 | public function getEntryAction() | |
18 | { | |
19 | return new Entries('Blobby'); | |
20 | } | |
21 | } |