This extension allows you to create http-request-template (eg: swrv or axios ) for your project from api-docs.
The following image is the your document of apifox
the following is the Remote Explorer, the structure is the same as the api-docs-definition
How to use
install this extension
ctrl + shift + p, input doc2http:Config to init your config to tell extension how get apifox data
open Remote Explore, select any file or any folder
click to swrv button
you will get the http-request-template in your project
example
request-method-template
request-interface-template
other feature
copy as importFn
copy selected apiName to import {apiName,...} form ApiPath
how to use
select apiName in your file
right click then click Copy As ImportFn
you will get paste like import { useGetChatbotAdminBotIntentDetail, PostChatbotAdminBotIntentBatchProcess } from '@/services/apifox/cHATBOTGuanLiHouTai/jiQiRenYiTuKu/apifox' in your clipboard
if you want alias path, you can set alias property in doc2http.json
{ "alias": { "@/": "src/" } }