Yapi文档Ts接口定义转换
YapiHelper Extension
快速自动化生成yapi 接口ts定义, 一键式查询任意站内yapi接口;
支持配置可使用业务域名;
自动匹配符合正则规则的接口页面(/^https:\\/\\/[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}\\/project\\/\\d+\\/interface\\/api\\/(\\d+)$/);
PS:第一次安装成功后,请重启浏览器或刷新目标页面
——————————————————————————————————
Quickly automate the yapi interface TS definition, one -click query in any station YAPI interface;
Support the configuration of the business domain name;
Automatic matching interface page (/^https: \\/\\/[a-za-z0-9 .-]+\\. [A-Za-Z] {2, Project \\ D+\\ \\/Project \\ d+\\/interface \\/api \\/(\\ d+) $/);
PS: After the first installation is successful, please restart the browser or refresh the target page
Read more
支持配置可使用业务域名;
自动匹配符合正则规则的接口页面(/^https:\\/\\/[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}\\/project\\/\\d+\\/interface\\/api\\/(\\d+)$/);
PS:第一次安装成功后,请重启浏览器或刷新目标页面
——————————————————————————————————
Quickly automate the yapi interface TS definition, one -click query in any station YAPI interface;
Support the configuration of the business domain name;
Automatic matching interface page (/^https: \\/\\/[a-za-z0-9 .-]+\\. [A-Za-Z] {2, Project \\ D+\\ \\/Project \\ d+\\/interface \\/api \\/(\\ d+) $/);
PS: After the first installation is successful, please restart the browser or refresh the target page
Source Manifest.json
{\t"manifest_version": 3,\t"name": "YapiHelper",\t"version": "0.0.4",\t"description": "Yapi\u6587\u6863Ts\u63a5\u53e3\u5b9a\u4e49\u8f6c\u6362",\t"icons": {\t\t"16": "static/images/icon16.png",\t\t"32": "static/images/icon48.png",\t\t"48": "static/images/icon128.png",\t\t"128": "static/images/icon200.png"\t},\t"background": {\t\t"service_worker": "js/background.js",\t\t"type": "module"\t},\t"options_page": "pages/options.html",\t"action": {\t\t"default_icon": "static/images/icon16.png",\t\t"default_title": "",\t\t"default_popup": "pages/popup.html"\t},\t"content_scripts": [ {\t\t"js": ["js/jquery.min.js","js/codemirror.min.js","js/javascript.min.js","js/foldgutter.min.js","js/clike.min.js","js/toJson.js","js/rawtots.js", "js/index.js"],\t\t"css": ["css/codemirror.css", "css/seti.min.css", "css/darcula.min.css","css/foldgutter.min.css","css/ui.css"],\t\t"matches": ["*://*/*"],\t\t"run_at": "document_end"\t } ],\t "commands": { "_execute_browser_action": { "suggested_key": { "default": "Ctrl+Shift+F", "mac": "MacCtrl+Shift+F" }, "description": "Opens popup.html" } },\t"permissions": [\t\t"storage",\t\t"scripting"\t],\t"optional_permissions": [\t],\t"host_permissions": [\t],\t"optional_host_permissions": [\t],\t"update_url": "https://clients2.google.com/service/update2/crx"}
Read more