Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | /** @license For full copyright and license information, please see the LICENSE.md file. */ |
| 6 | |
| 7 | namespace App\Core\Engine\Presentation\Api; |
| 8 | |
| 9 | defined('AMMONLY_APP') || exit('Direct script access is forbidden.'); |
| 10 | |
| 11 | use Psr\Http\Message\ResponseInterface; |
| 12 | use Psr\Http\Message\ServerRequestInterface; |
| 13 | |
| 14 | /** |
| 15 | * Interface for Media Upload API Controller. |
| 16 | * |
| 17 | * @package App\Core\Engine\Presentation\Api |
| 18 | */ |
| 19 | interface MediaUploadApiControllerInterface |
| 20 | { |
| 21 | /** |
| 22 | * Handles upload of one or multiple image files. |
| 23 | * |
| 24 | * @param ServerRequestInterface $request Incoming HTTP request. |
| 25 | * @return ResponseInterface JSON API response. |
| 26 | */ |
| 27 | public function actionUpload(ServerRequestInterface $request): ResponseInterface; |
| 28 | } |