generating REST api for generate command