$this->
enrichComponents($openApi->components,
$api);
} /**
* @return Server[]
*/
private function createServers(string
$api): array
{ $url =
(string) EnvironmentHelper::
getVariable('APP_URL', ''
);
return [ new Server(['url' =>
rtrim($url, '/'
) . self::API
[$api]['url'
]]),
];
} private function createInfo(string
$api, string
$version): Info
{ return new Info([ 'title' => 'Shopware ' . self::API
[$api]['name'
],
'version' =>
$version,
'description' => <<<'EOF'
This endpoint reference contains an overview of all endpoints comprising the Shopware Admin API.
For a better overview, all CRUD-endpoints are hidden by default. If you want to show also CRUD-endpoints
add the query parameter `type=jsonapi`.