Create api, add generate file