Update API generation to conform to the latest structure of JSON files