Automate API generation