js_spec: add api_generator spec