mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-04-16 10:16:22 +02:00
49 lines
1.3 KiB
PHP
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;
|
|
}
|