OpenApiController
class OpenApiController extends ApiController (View source)
Properties
protected Application | $app | ||
protected EntityManager | $entityManager |
Methods
JsonResponse
error($message, int $code = 400)
Returns an error response in the standard Concrete error response format.
from
ApiController
Item
transform($object, TransformerAbstract $transformer)
Transforms an object using the API transformer
from
ApiController
JsonResponse
outputApiSpec()
Outputs the OpenAPI spec, substituting local URL values for placeholders.
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
__construct(Application $app, EntityManager $entityManager)
No description
JsonResponse
outputApiSpec()
Outputs the OpenAPI spec, substituting local URL values for placeholders.