aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller/ApiController.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller/ApiController.php')
-rw-r--r--src/Wallabag/CoreBundle/Controller/ApiController.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/ApiController.php b/src/Wallabag/CoreBundle/Controller/ApiController.php
new file mode 100644
index 00000000..ac06701c
--- /dev/null
+++ b/src/Wallabag/CoreBundle/Controller/ApiController.php
@@ -0,0 +1,21 @@
1<?php
2
3namespace Wallabag\CoreBundle\Controller;
4
5use Nelmio\ApiDocBundle\Annotation\ApiDoc;
6use Symfony\Bundle\FrameworkBundle\Controller\Controller;
7use Wallabag\CoreBundle\Entity\Entries;
8
9class 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}