I'm working on a project building an APEX REST API that would benefit by understanding the page layout for the user/record to decide on the response. It will feed a mobile app, and so I'm trying to manage/minimize API calls from the mobile device.
In short, I'm trying to callout to the REST api for
/services/data/v36.0/sobjects/Account/describe/layouts/ (as an example) from within my apex class, using the response from that callout with some other data, to respond to the GET request for this apex class.
I've looked into JSON2Apex but I wasn't able to get it working correctly for the results from
Any help or pointers are greatly appreciated!