1 Star 0 Fork 0

ApiFree / api-free

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

api-free 是Node.js 实现的一套操作规范,可以将简单重复的增删改查,自动实现,降低接口开发成本,提高开发效率。

特点功能(less is more)

  • 提供通用接口,大部分接口不用重复提供
  • 支持mongodb, mysql, postgres, mariadb, seqlite3, sql server
  • 支持多数据库连接
  • 以npm包的方式提供,集成简单,可以在任何框架中集成(koa,express等等)
  • 支持参数验证
  • 支持通过before和after 函数,拦截或者再次处理结果
  • 底层使用sequelize和mongoose 不重复造轮子。
  • 支持自动生成数据库模型(mongodb 除外)
  • 支持任意补全请求中的外联id,可以跨库,跨数据库类型(sql 和 mongo 相互)
  • 支持mongodb 事务(mongodb 4.2 以上版本支持)
  • 支持复用数据库模型,复杂的接口可以直接使用api-free导出的模型,无需重新配置数据库
The MIT License (MIT) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/api-free/api-free.git
git@gitee.com:api-free/api-free.git
api-free
api-free
api-free
master

搜索帮助