Communication from Apex with huge REST Apis feels cumbersome to me as there is so much repetitive work involved with building Apex Objects that function as callout request params or responses.
This is especially bad when the API is not stable and you constantly have to re-adjust the DTOs.
I know there are ways to describe REST APIs. Swagger for example. I have also seen code gens for Swagger, but I would really like to hear more from Salesforce developers who have durable experience in working with huge APIs.
So just to restate what I want:
- Prevent the extensive manual creation of dumb DTO objects
- Allow to easily adapt to API changes.
- Minimize Code that juggles with HTTP or JSON details.
I'm especially interested in how that is solved in other languages: Java or .NET in comparison to Apex. What's the state of art in consuming REST?