18e6796726
* REST API routes are handle by Slim. * Every API controller go through ApiMiddleware which handles security. * First service implemented `/info`, for tests purpose.
19 lines
330 B
PHP
19 lines
330 B
PHP
<?php
|
|
|
|
namespace Shaarli\Api\Exceptions;
|
|
|
|
/**
|
|
* Class ApiBadParametersException
|
|
*
|
|
* Invalid request exception, return a 400 HTTP code.
|
|
*/
|
|
class ApiBadParametersException extends ApiException
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getApiResponse()
|
|
{
|
|
return $this->buildApiResponse(400);
|
|
}
|
|
}
|