Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (32 sloc) 819 Bytes
<?php
namespace Tomaj\NetteApi\Handlers;
use Tomaj\NetteApi\EndpointInterface;
use Tomaj\NetteApi\Params\InputParam;
use Nette\Application\IResponse;
interface ApiHandlerInterface
{
/**
* Returns available parameters that handler need
*
* @return InputParam[]
*/
public function params();
/**
* Main handle method that will be executed when api
* endpoint contected with this handler will be triggered
*
* @param array $params
*
* @return IResponse
*/
public function handle($params);
/**
* Set actual endpoint identifier to hnadler.
* It is neccesary for link creation.
*
* @param EndpointInterface $endpoint
*
* @return void
*/
public function setEndpointIdentifier(EndpointInterface $endpoint);
}
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.