跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[程序员] 原来 Apifox 还可以这么玩(前端 er 必看)

发表于

在我的认知里面,一直认为 apifox 必须手动导出 openapi 文件才可以使用 openapi.json 可是在我无聊尝试中发现,原来 apifox 会自动同步 openapi.json 文件,然后你可以通过下面的接口获取,你自己快在 apifox 网页的控制台看看有没有调用这个接口吧

https://api.apifox.com/api/v1/auto-import-settings?locale=zh-CN

如果有的话,你也可以用它来转 ts, axios 请求(其他任意请求库都可以),枚举、type 、枚举字段翻译,让你天天提前下班, 快去试试吧

由于 apifox 管理的 api 接口 都有一个通病就是接口数量太多了,于是我把现有的一个开源小工具改造之后让它可以拉指定 tags 的接口和 type, 从而让生成文件代码更简洁, 顺便加了十多个其他功能,发了一个新包 https://github.com/openapi-ui/openapi-ts-request

重点是:我会一直维护这个包,欢迎提 pr, issue ,feature ,只要合理,通通满足!!!

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.