easyapi

时间:2021-03-28 22:21:32
【文件属性】:
文件名称:easyapi
文件大小:34KB
文件格式:ZIP
更新时间:2021-03-28 22:21:32
TypeScript @ shushu.pro / easyapi 前端开发API系统,支持数据适配器,模拟生成器,支持RESTFul方式接口,可以普遍在vue或react的api相关模块中使用 开发目的 解决前端接口管理维护的问题 解决前端接口调试困难的问题 解决前端接口数据嘲笑的问题 解决数据处理问题 解决前端接口前基线不统一的问题 组件特点 以配置文件的方式实现接口的定义 以声明的方式实现动态模拟数据的生成 支持自定义的扩展配置项实现复杂的功能 支持promise和callback模式无缝使用 支持完整的调试信息输出 支持前预算数据快速适应 支持配置接口缓存提升性能 配置说明 应用中使用接口获取数据 // promise模式 $api . getData ( { id : 1 } ) . then ( ( responseObject ) => { // responseObject包含返
【文件预览】:
easyapi-master
----.gitignore(268B)
----package.json(1KB)
----src()
--------defaultConfigs.ts(272B)
--------RequestConfig.ts(5KB)
--------convertRESTful.ts(821B)
--------mockResult.ts(1KB)
--------createExports.ts(2KB)
--------onResponse.ts(2KB)
--------index.ts(204B)
--------callRequest.ts(2KB)
--------typings.ts(2KB)
--------cacheResult.ts(151B)
--------Easyapi.ts(2KB)
--------httpResult.ts(316B)
--------validateConfig.ts(82B)
----playground()
--------index.html(374B)
--------index.ts(820B)
----jest.config.js(6KB)
----LICENSE(1KB)
----rollup()
--------external.js(90B)
--------build.js(2KB)
--------env.js(72B)
--------develop.js(2KB)
----CHANGELOG.md(1KB)
----tsconfig.json(3KB)
----.eslintrc.js(867B)
----.prettierrc.js(117B)
----README.md(4KB)
----.eslintignore(28B)
----.babelrc.js(180B)
----test()
--------env()
--------index.test.ts(1KB)
--------example.ts(154B)
--------easyapi()

网友评论