System and method for automated application programming interface generation