Created a script to generate the apis.