[api] method generation