$humanReadableName =
$this->
convertToHumanReadable($definition->
getEntityName());
$tags =
[$humanReadableName];
if ($experimental =
$this->
isExperimental($definition)) { $tags[] = 'Experimental';
} $schemaName =
$this->
snakeCaseToCamelCase($definition->
getEntityName());
return new Get([ 'summary' => 'List with basic information of ' .
$humanReadableName . ' resources.' .
($experimental ? ' Experimental API, not part of our backwards compatibility promise, thus this API can introduce breaking changes at any time.' : ''
),
'description' =>
$definition->
since() ? 'Available since: ' .
$definition->
since() : '',
'tags' =>
$tags,
'parameters' =>
$this->
getDefaultListingParameter(),
'operationId' => 'get' .
$this->
convertToOperationId($definition->
getEntityName()) . 'List',
'responses' =>
[ Response::HTTP_OK =>
new OpenApiResponse([ 'response' => Response::HTTP_OK,
'description' => 'List of ' .
$humanReadableName . ' resources.',
'content' =>
[ 'application/vnd.api+json' =>
[ 'schema' =>
[ 'allOf' =>
[ [