Delivered at Adobe Marketing Cloud – Community Expo (AMCCE).
https://www.meetup.com/Melbourne-Adobe-Experience-Cloud/events/233363101/?eventId=233363101
4. Q: How do you deploy a package?
A: Use this curl command.
Q: Really?
Q: How do you …?
A: Use that curl command.
5.
6.
7. Problems
• curl —fail is not fail-safe
• Can’t rely on exit code
• Can’t rely on HTTP status code
• Need to parse response body
• Unexpected AEM state
8. API client
• A helper library
• Authentication
• HTTP request/response
• Debugging
9. Why API client?
• First class for your tech stack
• Better error handling
• Simpler response body parsing
• Easier integration with 3rd party tools
10. Moarrr clients
• In 2014: wrote an AEM Python client
• In 2015: wrote an AEM Ruby client
• Other clients written by others
25. Join the effort, contributions are welcome!
https://github.com/shinesolutions/swagger-aem
26. CREDITS
Background images are from Google search with reuse rights:
• Europasaurus holgeri - https://en.wikipedia.org/wiki/Mesozoic#/
media/File:Europasaurus_holgeri_Scene_2.jpg
• Yes really - http://www.quickmeme.com/meme/36i4mo
• Head of the Charles Regatta - http://hocr.tumblr.com/post/
34706902195