According to the documentation for REST API https://docs.shopware.com/en/shopware-platform-dev-en/how-to/working-with-the-api-and-an-http-client
I can retrieve product data by calling the request
function
$this->restService->request('GET', 'product');
Basically, it makes following request which is returning me product data.
private function createShopwareApiRequest(string $method, string $uri, ?string $body = null): RequestInterface
{
return new Request(
$method,
getenv('APP_URL') . '/api/v3/' . $uri,
[
'Authorization' => 'Bearer ' . $this->accessToken,
'Accept' => '*/*'
],
$body
);
}
I couldn’t find the media files related to the product. Can anybody help me how can I fetch products along with the images ?