将YAPI数据,格式化为字符串

Latest Version

Version
1.0.3
Update
November 29, 2021
Size
69.66KiB
Developer
Category
Users
7
Rating
0 ★
Manifest Version
3
Web Store Status
Languages Support
中文 (简体)
See more
Permissions
ClipboardWrite
Notifications
See more

yapi2str Extension

请使用如下测试地址:http://nanguan.top/yapi/

针对yapi网站存储的数据进行格式化,整理后的数据格式为jsdoc形式或者mock形式。

由于yapi文档中接口返回的数据是带有层级接口的dom元素,需要将其转为/** @returns {string} name - 用户名 */平级结构的字符串,也可生成测试的mock数据。通过扩展的方式可以更方便的获取接口数据并生成相应字符串,减少重复的复制粘贴操作。
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "yapi2str", "description": "\u5c06YAPI\u6570\u636e\uff0c\u683c\u5f0f\u5316\u4e3a\u5b57\u7b26\u4e32", "version": "1.0.3", "manifest_version": 3, "icons": { "16": "/images/data.png", "32": "/images/data.png", "48": "/images/data.png" }, "background": { "service_worker": "background.js" }, "permissions": ["clipboardWrite", "notifications"], "action": { "default_popup": "popup.html", "default_icon": { "16": "/images/data.png", "32": "/images/data.png", "48": "/images/data.png" } }, "content_scripts": [ { "matches": [""], "js": ["./js/content.js"] } ]}
Read more

Similar Extensions

icon

YAML to JSON Converter Extension · Developer Tools 7 4 ★ 706KiB

icon

Apifox Browser Extension Extension · Developer Tools 7 9 ★ 28.39KiB

icon

Oh-my-Mock Extension · Developer Tools 7 8 ★ 7.07MiB

icon

PHP Serialize/Unserialize Extension · Developer Tools 7 3 ★ 44.46KiB

icon

JSON格式化工具 Extension · Developer Tools 7 7 ★ 583KiB

icon

KEYOLOGIC AUTOFILLER Extension · Developer Tools 7 0 ★ 349KiB

icon

MockMan - mock APIs Extension · Productivity 7 17 ★ 2.3MiB

icon

Form Filler Extension · Developer Tools 7 2 ★ 60.13KiB

icon

Dataverse REST Builder Extension · Productivity 7 4 ★ 1.24MiB

icon

Web To JSON Extension · Developer Tools 7 0 ★ 145KiB

icon

JSON Formatter Extension · Productivity 7 2 ★ 1.54MiB

icon

Mock:Intercept and directly return data Extension · Developer Tools 7 6 ★ 487KiB

icon

Notion API Connector Extension · Productivity 7 2 ★ 1.32MiB

icon

API Tester - REST API Tester Client FREE Extension · Developer Tools 7 1 ★ 3.51MiB

icon

JavaAPI (Javadoc) Redirector Extension · Developer Tools 7 2 ★ 28.96KiB

icon

re:write - Your writing companion Extension · Productivity 7 5 ★ 33.94KiB

icon

AssemblyAI Extension Extension · Accessibility 7 1 ★ 8.09KiB

icon

JSON Format Tool Extension · Productivity 7 0 ★ 65.48KiB

icon

Jsonview jsonFormatter Extension · Developer Tools 7 0 ★ 126KiB

icon

JWT Token Decoder Extension · Developer Tools 7 0 ★ 12.33KiB

icon

JSONBeautifyinator Extension · Developer Tools 7 1 ★ 5.51KiB

icon

redoc viewer Extension · Developer Tools 7 0 ★ 16.24KiB

icon

JSON Formatter Extension · Productivity 7 0 ★ 139KiB

icon

Loadmill Test Composer Extension · Developer Tools 7 9 ★ 1.7MiB