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.

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.

Details

protected JsonResponse error($message, int $code = 400)

Returns an error response in the standard Concrete error response format.

Parameters

$message
int $code

Return Value

JsonResponse

Item transform($object, TransformerAbstract $transformer)

Transforms an object using the API transformer

Parameters

$object
TransformerAbstract $transformer

Return Value

Item

__construct(Application $app, EntityManager $entityManager)

No description

Parameters

Application $app
EntityManager $entityManager

JsonResponse outputApiSpec()

Outputs the OpenAPI spec, substituting local URL values for placeholders.

Return Value

JsonResponse