13 namespace Fossology\UI\Api\Controllers;
18 use Psr\Http\Message\ServerRequestInterface;
35 public function __invoke($request, $response, $args)
37 $id = $args[
'params'];
38 $returnVal =
new Info(404,
"Unable to find the path '$id'.",
40 return $response->withJson($returnVal->getArray(), $returnVal->getCode());
__invoke($request, $response, $args)
Base controller for REST calls.
Override Slim response for withJson function.
Different type of infos provided by REST.
Info model to contain general error and return values.