Add all fields in the item response instead of only existing fields




  • Andreas Haugstrup Pedersen

    Including all fields is a waste in most cases (e.g. any case where you are working on more than 1 item from the same app). So fetching the app is the way to go in most cases. If you're always working on the same apps and the structure doesn't change you can also store the app structure in a cache so you never have to fetch it again.

    You should be able to get the app structure returned by using the fields query parameter to tell the API what data you want returned. It's undocumented at the moment, but the basic idea is that instead of making a request to /item/{item_id} you make it to /item/{item_id}?fields=app.view(full)

    Comment actions Permalink
  • Riël Notermans

    That is pretty nice. Thank you.

    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk