Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>rap2-codeNew to Visual Studio Code? Get it now.
rap2-code

rap2-code

wangzk

|
25 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

rap2-code README

本扩展是为了生成js接口代码用于mock请求,生成格式如下

module.exports={
  "xxxx": {
    "method": "xxxx",
    "url": "xxxx",
    "interfaceId": xxxx,
    "mock": true
  },
}

在工作空间内创建rap2JsCode.json,并配置以下内容(用户token和仓库id可以通过仓库详情页面上数据按钮获取):

{
  "fileUrl": "", //api配置文件地址,相对根目录
  "module": [], //模块id
  "repositoryId": , //仓库id
  "token": "", //用户token
};

注意:目前不支持多个workspacefold,默认取第一个

Features

Requirements

Extension Settings

Known Issues

Release Notes

1.3.0

支持生成dts

1.2.1

同时支持rap2的cookie及token(cookie优先级最高)

1.2.0

支持rap2私有化服务 配置文件需要获取rap2的cookie

0.0.8

修复变更日志重复

0.0.7

接口文档新增接口注释 新增生成接口文档变更日志

0.0.4

新增状态栏按钮

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft