namespace Wallabag\CoreBundle\Controller;
use Nelmio\ApiDocBundle\Annotation\ApiDoc;
-use FOS\RestBundle\Controller\Annotations\View;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Wallabag\CoreBundle\Entity\Entries;
class WallabagRestController extends Controller
{
-
/**
* Retrieve all entries. It could be filtered by many options.
*
$entries = $this
->getDoctrine()
->getRepository('WallabagCoreBundle:Entries')
- ->findEntries(1, (int)$isArchived, (int)$isStarred, (int)$isDeleted, $sort, $order);
+ ->findEntries(1, (int) $isArchived, (int) $isStarred, (int) $isDeleted, $sort, $order);
- if(!is_array($entries)) {
+ if (!is_array($entries)) {
throw $this->createNotFoundException();
}
return $entries;
-
}
/**
*/
public function patchEntriesAction(Entries $entry)
{
-
}
/**
*/
public function deleteEntriesAction(Entries $entry)
{
-
}
-
/**
* Retrieve all tags for an entry
*
* }
* )
*/
- public function getEntriesTagsAction(Entries $entry) {
-
+ public function getEntriesTagsAction(Entries $entry)
+ {
}
/**
* }
* )
*/
- public function postEntriesTagsAction(Entries $entry) {
-
+ public function postEntriesTagsAction(Entries $entry)
+ {
}
/**
*/
public function deleteEntriesTagsAction(Entries $entry, Tags $tag)
{
-
}
/**
* @ApiDoc(
* )
*/
- public function getTagsAction() {
-
+ public function getTagsAction()
+ {
}
/**
* }
* )
*/
- public function getTagAction(Tags $tag) {
-
+ public function getTagAction(Tags $tag)
+ {
}
/**
*/
public function deleteTagAction(Tags $tag)
{
-
}
-}
\ No newline at end of file
+}