title: How can I fetch the media files of the products in Shopware 6 using Rest API?
body: <p>I am beginner to Shopware and following documentation most of the time. According to the documentation for REST API <strong><a href="https://docs.shopware.com/en/shopware-platform-dev-en/how-to/working-with-the-api-and-an-http-client" rel="nofollow noreferrer">https://docs.shopware.com/en/shopware-platform-dev-en/how-to/working-with-the-api-and-an-http-client</a></strong></p>
  <p>I can retrieve product data by calling the <code>request</code> function</p>
  <pre><code>$this-&gt;restService-&gt;request('GET', 'product');
  </code></pre>
  <p>Basically, it makes following request which is returning me product data.</p>
  <pre><code>private function createShopwareApiRequest(string $method, string $uri, ?string $body = null): RequestInterface
  {
      return new Request(
          $method,
          getenv('APP_URL') . '/api/v3/' . $uri,
          [
              'Authorization' =&gt; 'Bearer ' . $this-&gt;accessToken,
              'Accept' =&gt; '*/*'
          ],
          $body
      );
  }
  </code></pre>
  <p>I couldn't find the media files related to the product. Can anybody help me how can I fetch products along with the images ?</p>