Programatically build API from api.json