Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3declare(strict_types=1);
4
5/** @license For full copyright and license information, please see the LICENSE.md file. */
6
7namespace App\Core\Engine\Presentation\Api;
8
9defined('AMMONLY_APP') || exit('Direct script access is forbidden.');
10
11use Psr\Http\Message\ResponseInterface;
12use Psr\Http\Message\ServerRequestInterface;
13
14/**
15 * Interface for Media Upload API Controller.
16 *
17 * @package App\Core\Engine\Presentation\Api
18 */
19interface 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}