return ltrim('/',
$rootPath) . '/' .
str_replace('_', '-',
$definition->
getEntityName());
} private function addGeneralInformation(OpenApi
$openApi): void
{ $openApi->info->description = 'This endpoint reference contains an overview of all endpoints comprising the Shopware Store API';
} private function addContentTypeParameter(OpenApi
$openApi): void
{ $openApi->components->parameters =
[ new Parameter([ 'parameter' => 'contentType',
'name' => 'Content-Type',
'in' => 'header',
'required' => true,
'schema' =>
[ 'type' => 'string',
'default' => 'application/json',
],
'description' => 'Content type of the request',
]),
new Parameter([