没有合适的资源?快使用搜索试试~ 我知道了~
apitool:使用API的一种有组织的方式
共26个文件
ts:12个
json:5个
md:3个
需积分: 8 0 下载量 49 浏览量
2021-04-24
08:36:11
上传
评论
收藏 89KB ZIP 举报
温馨提示
介绍 apitool是一个包装axios 。 它提供了一种使用API的有组织的方式。 这是因为您的基于TypeScript的项目是使用TypeScript编写的,因此可以顺利进行。 目录 贡献 作者 安装 npm install apitool --save 入门 执行一个简单的GET请求 import Api from 'apitool' ; const result = await new Api ( ) . request ( "get" , url ) ; // or const result = await new Api ( ) . get ( url ) ; 当然,您可以像下面这样放置参数: const params = { ... } const result = await new Api ( ) . request ( "get" , url , p
资源推荐
资源详情
资源评论
收起资源包目录
apitool-master.zip (26个子文件)
apitool-master
.eslintrc.json 20B
.gitignore 1KB
package.json 1008B
.bilirc 141B
package-lock.json 396KB
src
error_type.ts 133B
cancel_token_manager.ts 648B
response_validation_context.ts 807B
config
merge.ts 1001B
index.ts 371B
response.ts 251B
config.ts 793B
util.ts 185B
api.ts 6KB
LICENSE.md 1KB
sandbox.config.json 87B
.travis.yml 39B
jest.config.js 200B
dist
index.js 9KB
CHANGELOG.md 47B
tsconfig.json 322B
README.md 7KB
tests
config.spec.ts 2KB
api.spec.ts 1KB
request.spec.ts 4KB
logo.png 2KB
共 26 条
- 1
资源评论
长迦
- 粉丝: 34
- 资源: 4659
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功