How to retrieve asset meta data from another schema via API call

I have…

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [ ] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

Expected behavior

Minimal reproduction of the problem

Environment

App Name:

  • [ ] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ x] Cloud version

Version: [VERSION]

Browser:

  • [ x] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:

I have a page schema that contains a contentList schema which can render custom components such as banners, heading text, images, html, etc…

When assets are used in the schema of a nested component, I simply get an id back from the API. What’s the best technique for retrieving all asset data for a referenced asset? I would love to perform a single API call but it doesn’t appear possible. I know I can look up asset data using a second API call, but ultimately I’m looking to render images using some of the asset meta data. e.g. I am adding an “alt” meta key with language to use in the [value]

Do you have any suggestions on the best way to do this? Thanks,

Use GraphQL for that…