infinito/application/symfony/src/Controller/API/AbstractAPIController.php
2019-02-20 19:11:21 +01:00

49 lines
1.3 KiB
PHP

<?php
namespace Infinito\Controller\API;
use Infinito\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
/**
* @author kevinfrantz
*
* @todo Implement!
*
* @see https://de.wikipedia.org/wiki/CRUD
*/
abstract class AbstractAPIController extends AbstractController
{
/*
* @param Request $request HTTP Method POST with the object attributes as parameters
*
* @return Response
*/
// abstract public function create(Request $request, SecureCRUDFactoryService $crudFactory): Response;
/*
* @param Request $request HTTP Method GET
* @param int|string $identifier The slug or id of the object
*
* @return Response
*/
// abstract public function read(Request $request, $identifier): Response;
/*
* @param Request $request HTTP Method PUT
* @param int|string $identifier The slug or id of the object
*
* @return Response
*/
// abstract public function update(Request $request, $identifier): Response;
/*
* @param Request $request HTTP Method DELETE with the object attributes as parameters
* @param int|string $identifier The slug or id of the object
*
* @return Response
*/
// abstract public function delete(Request $request, $identifier): Response;
}