<?php

namespace idoit\Api;

use Symfony\Component\HttpFoundation\Request;

/**
 * Endpoint interface.
 *
 * This is a mandatory interface for the new API structure.
 *
 * @see       API-484
 * @package   idoit\Api
 * @copyright synetics GmbH
 * @license   http://www.i-doit.com/license
 */
interface EndpointInterface
{
    public function getDefinition(): EndpointDefinition;

    public function request(Request $request): JsonRpcResponse;
}
