I'm able to achieve a rest api request using this url.
na35.visual.force.com/services/data/v38.0/sobjects/custom_object__c/describe
the problem I have is it returns a ton of data. I just need a few fields from the sObject and the picklist values of those fields. The meta data. I'm creating a form to create new records.
How is it done?
Best Answer
You can only describe the entire object, including all fields. Fortunately, you can cache the data and use the If-Modified-Since header to avoid wasting bandwidth between each call. See Get Object Metadata Changes.
Example SObject Describe request
Example If-Modified-Since header used with request
Example response body
Example response status code