Api2Code CRX
0.0.0.7
hannq.github.io/chrome-extension-api-to-code

一款可以把 Api 文档 转换为 代码 的浏览器插件。

Latest Version

Version
0.0.0.7
Update
January 13, 2022
Size
3.66MiB
Developer
hannq.github.io/chrome-extension-api-to-code
Category
Users
68
Rating
5 ★
Manifest Version
3
Web Store Status
Languages Support
中文 (简体)
See more
Permissions
Tabs
ActiveTab
Storage
WebNavigation
See more

Api2Code Extension

根据 接口文档 生成为 代码接口定义
支持定义跳转(快捷键同 vscode)

注意:必须进入具体的某一接口页面,插件才会生效
如:http://yapi.smart-xwork.cn/project/122838/interface/api/1679370

当前已支持的功能如下:
1. 支持 YApi 转 TypeScript
2. 支持 Swagger 转 TypeScript
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "Api2Code", "description": "\u4e00\u6b3e\u53ef\u4ee5\u628a Api \u6587\u6863 \u8f6c\u6362\u4e3a \u4ee3\u7801 \u7684\u6d4f\u89c8\u5668\u63d2\u4ef6\u3002", "version": "0.0.0.7", "manifest_version": 3, "icons": { "16": "assets/images/icon16.png", "48": "assets/images/icon48.png", "128": "assets/images/icon128.png" }, "cross_origin_embedder_policy": { "value": "require-corp" }, "cross_origin_opener_policy": { "value": "same-origin-allow-popups" }, "permissions": [ "tabs", "activeTab", "storage", "webNavigation" ], "host_permissions": [ "*://*\\/*" ], "action": { "default_title": "Yapi to TypeScript", "default_icon": "assets/images/icon128.png", "default_popup": "index.html#/popup" }, "options_page": "index.html#/options", "background": { "service_worker": "background.js" }, "content_scripts": [ { "matches": [ "*://*/project/*/interface/api/*", "*://*/group/*", "*://*/*swagger-ui.html*" ], "js": [ "contentScript.js" ] }]}
Read more

How to download and manually install Api2Code extension for Chrome

Looking for a way to install Api2Code extensions for Chrome, you can search for them in the Chrome Web Store, clicking the "Add to Chrome" button, and following the straightforward process.

However, you may need to install Api2Code extensions manually, this article outlines two simple methods to effortlessly install Api2Code extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.

Method 1: Download Api2Code extension and manually install through Drag &Drop

If you ever need to manually install a Api2Code extension for Chrome, don't worry, it's a simple process. Just follow these easy steps, and you will have your extension ready to use in no time.

Step 1: Download the Api2Code Extension by clicking the "Download CRX" button on the website.

Look for the Api2Code extension you wish to install. Go to the website and download the Api2Code extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for Api2Code extension that contains all the data.

Step 2: Extract &Arrange Files

Once the file is downloaded, extract that file into its own folder. Similarly, give that extension files a permanent home. In other words, keep it in a folder that you don't accidentally delete it because these files will be needed to make that extension work.

Step 3: Go to the Chrome Extensions Page

Open Google Chrome and in the address bar, type chrome://extensions; it will open the Google Chrome extensions page. Make sure that "My extensions" is selected in the sidebar.

Step 4: Drag and Drop the Extension

Now, go to the folder where you extracted the Api2Code extension and drag &drop the extension file from there anywhere onto the extension page within Google Chrome.

Step 5: Complete the Installation

Once you drag and drop the extension file, follow the steps that Google Chrome takes you through. Similarly, if the extension file is of .crx file format, you will be required to review the permissions and then add the extension.

Now, you can manage that added extension as you would like to with any other Chrome extension that you added through Chrome Webstore. Its icon will also appear in the Google Chrome Menu on the right side of the address bar once you activate it.

Method 2: Download Api2Code extension for Chrome and install in Developer Mode

This is another method to install Api2Code extension manually, but the twist is that here, you install by enabling the developer mode option provided in Google Chrome. This mode is commonly used for testing extensions or running unpublished tools.

Step 1: Download the Api2Code extension file

Select and download the Api2Code extension by clicking the 'Download CRX' button on the website.

Step 2: Extract the downloaded contents

Convert the file to a ZIP file if it is in CRX format then extract the Api2Code extension zip file or folder that you downloaded. Make sure you extract it using the same folder name and keep it safely in another folder, so you don't delete it by mistake. The extracted folder will be needed to keep your Api2Code extension running.

Step 3: Open Chrome Extension Setting Page

In the address bar of Google Chrome, type chrome://extensions and open the Chrome Extension Page.

Step 4: Enable Developer Mode

After opening the Chrome Extension page, look at the top right side, and you will find the toggle option of "Developer mode."Simply enable that developer mode option.

Step 5: Load the Unpacked Extension

Once you enable the developer mode option, you will see the menu of Load Unpacked, Pack Extensions and Update. From that, select the option "Load unpacked."

Step 6: Select the Extension Folder

Once the pop-up opens upon clicking Load unpacked, select the Api2Code extension directory and click on the "Select Folder "button.

Step 7: Confirm and Install

After you select an extension folder of a Google Chrome extension you're installing manually, confirm its installation for the final time and let the installation complete.

Conclusion

Here we've made a step-by-step guide on How to manually install Api2Code extension in 2 ways. We hope this guide proves helpful.

Similar Extensions

icon

Omni - Bookmark, History, & Tab Manager Extension · Productivity 68 63 ★ 1.91MiB

icon

FeHelper(前端助手) Extension · Developer Tools 68 321 ★ 2.72MiB

icon

Console Importer Extension · Developer Tools 68 20 ★ 9.55KiB

icon

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

icon

YapiHelper Extension · Developer Tools 68 1 ★ 318KiB

icon

Axure RP Extension for Chrome Extension · Developer Tools 68 758 ★ 14.44KiB

icon

稀土掘金 Extension · Productivity 68 339 ★ 4.66MiB

icon

Ajax Modifier Extension · Developer Tools 68 48 ★ 2.08MiB

icon

TS Helper Extension · Developer Tools 68 1 ★ 41.89KiB

icon

Formily DevTools Extension · Developer Tools 68 4 ★ 2.43MiB

icon

yapi-ts Extension · Developer Tools 68 1 ★ 33.2KiB

icon

aigc-api Extension · Developer Tools 68 1 ★ 76.74KiB

icon

MobX Developer Tools Extension · Developer Tools 68 51 ★ 682KiB

icon

Relingo - Master Words | Bilingual Subtitles | Immersive Translate | Free Extension · Productivity 68 802 ★ 5.36MiB

icon

Vue.js devtools (beta) Extension · Developer Tools 68 149 ★ 2.54MiB

icon

YApi-X Extension · Developer Tools 68 13 ★ 13.74KiB

icon

PostWoman Http Test Extension · Developer Tools 68 46 ★ 834KiB

icon

V2EX Polish Extension · Productivity 68 95 ★ 193KiB

icon

XSwitch Extension · Developer Tools 68 18 ★ 1.6MiB

icon

swagger-type-generator Extension · Developer Tools 68 7 ★ 482KiB

icon

Octotree - GitHub code tree Extension · Developer Tools 68 1139 ★ 3.54MiB

icon

二维码(QR码)生成器(QR Code Generator) Extension · Productivity 68 124 ★ 94.16KiB

icon

free-swagger Extension · Developer Tools 68 4 ★ 521KiB

icon

File Icons for GitHub and GitLab Extension · Developer Tools 68 48 ★ 460KiB

User reviews

icon

Devin Qiu (ID: 000000504ef67a2c) Voted 5 ★ - Updated 08/04/2022 C/V 选手的最佳伴侣 NICE!

icon

Yu Tong (ID: 000000118fa01222) Voted 5 ★ - Updated 12/30/2021 墙裂推荐,希望能增加支持转 其他语言!

icon

博博群 (ID: 000000bb4b12834a) Voted 5 ★ - Updated 12/29/2021 Feeling Unknowingly Cool.

icon

泥尘雨 (ID: 0000005db4ba76a9) Voted 5 ★ - Updated 12/22/2021 建议尽快增加配置项功能

icon

dr2009 (ID: 00000010186474a9) Voted 5 ★ - Updated 12/22/2021 好用