ApiController
class ApiController (View source)
Methods
JsonResponse
error($message, int $code = 400)
Returns an error response in the standard Concrete error response format.
Item
transform($object, TransformerAbstract $transformer)
Transforms an object using the API transformer
Details
protected JsonResponse
error($message, int $code = 400)
Returns an error response in the standard Concrete error response format.
Item
transform($object, TransformerAbstract $transformer)
Transforms an object using the API transformer