init the dir and add the api file
api file type change