{"id":13458781,"url":"https://github.com/ssssssss-team/magic-api","last_synced_at":"2025-05-15T09:07:36.120Z","repository":{"id":37108286,"uuid":"261341400","full_name":"ssssssss-team/magic-api","owner":"ssssssss-team","description":"magic-api 是一个接口快速开发框架，通过Web页面编写脚本以及配置，自动映射为HTTP接口，无需定义Controller、Service、Dao、Mapper、XML、VO等Java对象","archived":false,"fork":false,"pushed_at":"2025-04-30T07:19:42.000Z","size":6874,"stargazers_count":1655,"open_issues_count":41,"forks_count":379,"subscribers_count":33,"default_branch":"master","last_synced_at":"2025-04-30T08:31:22.615Z","etag":null,"topics":["api","api-framework","automatic-api","http-api","http-api-generator","magic-api","magic-script","restful-api","sql"],"latest_commit_sha":null,"homepage":"http://ssssssss.org","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ssssssss-team.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-05T02:12:41.000Z","updated_at":"2025-04-30T07:19:47.000Z","dependencies_parsed_at":"2024-01-13T17:49:58.276Z","dependency_job_id":"dc97da1e-4e95-47b1-9923-4dccb7939614","html_url":"https://github.com/ssssssss-team/magic-api","commit_stats":null,"previous_names":[],"tags_count":76,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssssssss-team%2Fmagic-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssssssss-team%2Fmagic-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssssssss-team%2Fmagic-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssssssss-team%2Fmagic-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ssssssss-team","download_url":"https://codeload.github.com/ssssssss-team/magic-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254310515,"owners_count":22049469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-framework","automatic-api","http-api","http-api-generator","magic-api","magic-script","restful-api","sql"],"created_at":"2024-07-31T09:00:57.256Z","updated_at":"2025-05-15T09:07:31.112Z","avatar_url":"https://github.com/ssssssss-team.png","language":"Java","readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://www.ssssssss.org/images/logo-magic-api.png\" width=\"256\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca target=\"_blank\" href=\"https://www.oracle.com/technetwork/java/javase/downloads/index.html\"\u003e\u003cimg src=\"https://img.shields.io/badge/JDK-1.8+-green.svg\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://search.maven.org/search?q=g:org.ssssssss%20AND%20a:magic-api\"\u003e\n        \u003cimg alt=\"maven\" src=\"https://img.shields.io/maven-central/v/org.ssssssss/magic-api.svg?style=flat-square\"\u003e\n    \u003c/a\u003e\n    \u003ca target=\"_blank\" href=\"https://www.ssssssss.org\"\u003e\u003cimg src=\"https://img.shields.io/badge/Docs-latest-blue.svg\"/\u003e\u003c/a\u003e\n    \u003ca target=\"_blank\" href=\"https://github.com/ssssssss-team/magic-api/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/ssssssss-team/magic-api?logo=github\"\u003e\u003c/a\u003e\n    \u003ca target=\"_blank\" href=\"https://gitee.com/ssssssss-team/magic-api\"\u003e\u003cimg src=\"https://gitee.com/ssssssss-team/magic-api/badge/star.svg?theme=white\" /\u003e\u003c/a\u003e\n    \u003ca target=\"_blank\" href=\"https://github.com/ssssssss-team/magic-api\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/ssssssss-team/magic-api.svg?style=social\"/\u003e\u003c/a\u003e\n    \u003ca target=\"_blank\" href=\"LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/:license-MIT-blue.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n[特性](#特性) | [快速开始](#快速开始) | [文档/演示](#文档演示) | [示例项目](#示例项目) | \u003ca target=\"_blank\" href=\"http://ssssssss.org/changelog.html\"\u003e更新日志\u003c/a\u003e | [项目截图](#项目截图) | [交流群](#交流群)\n\n# 简介\n\nmagic-api 是一个基于Java的接口快速开发框架，编写接口将通过magic-api提供的UI界面完成，自动映射为HTTP接口，无需定义Controller、Service、Dao、Mapper、XML、VO等Java对象即可完成常见的HTTP API接口开发\n\n\n【已有上千家中小型公司使用，上万名开发者用于接口配置开发。上百名开发者参与提交了功能建议，接近20多名贡献者参与。已被gitee长期推荐。从首个版本开始不断优化升级，目前版本稳定，开发者交流群活跃。参与交流QQ群④700818216】\n\n# 特性\n- 支持MySQL、MariaDB、Oracle、DB2、PostgreSQL、SQLServer 等支持jdbc规范的数据库\n- 支持非关系型数据库Redis、Mongodb\n- 支持集群部署、接口自动同步。\n- 支持分页查询以及自定义分页查询\n- 支持多数据源配置，支持在线配置数据源\n- 支持SQL缓存，以及自定义SQL缓存\n- 支持自定义JSON结果、自定义分页结果\n- 支持对接口权限配置、拦截器等功能\n- 支持运行时动态修改数据源\n- 支持Swagger接口文档生成\n- 基于[magic-script](https://gitee.com/ssssssss-team/magic-script)脚本引擎，动态编译，无需重启，实时发布\n- 支持Linq式查询，关联、转换更简单\n- 支持数据库事务、SQL支持拼接，占位符，判断等语法\n- 支持文件上传、下载、输出图片\n- 支持脚本历史版本对比与恢复\n- 支持脚本代码自动提示、参数提示、悬浮提示、错误提示\n- 支持导入Spring中的Bean、Java中的类\n- 支持在线调试\n- 支持自定义工具类、自定义模块包、自定义类型扩展、自定义方言、自定义列名转换等自定义操作\n\n# 快速开始\n\n## maven引入\n```xml\n\u003c!-- 以spring-boot-starter的方式引用 --\u003e\n\u003cdependency\u003e\n\t\u003cgroupId\u003eorg.ssssssss\u003c/groupId\u003e\n    \u003cartifactId\u003emagic-api-spring-boot-starter\u003c/artifactId\u003e\n    \u003cversion\u003e2.1.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n## 修改application.properties\n\n```properties\nserver.port=9999\n#配置web页面入口\nmagic-api.web=/magic/web\n#配置文件存储位置。当以classpath开头时，为只读模式\nmagic-api.resource.location=/data/magic-api\n```\n\n## 在线编辑\n访问`http://localhost:9999/magic/web`进行操作\n\n# 文档/演示\n\n- 文档地址：[https://ssssssss.org](https://ssssssss.org)\n- 在线演示：[https://magic-api.ssssssss.org](https://magic-api.ssssssss.org)\n\n# 示例项目\n\n- [magic-api-example](https://gitee.com/ssssssss-team/magic-api-example)\n\n# 项目截图\n| ![整体截图](https://images.gitee.com/uploads/images/2021/0711/105714_c1cacf2c_297689.png \"整体截图\") | ![代码提示](https://images.gitee.com/uploads/images/2021/0711/110448_11b6626b_297689.gif \"代码提示\") |\n|---|---|\n| ![DEBUG](https://images.gitee.com/uploads/images/2021/0711/110515_755f178a_297689.gif \"DEBUG\") | ![参数提示](https://images.gitee.com/uploads/images/2021/0711/110322_9dd6d149_297689.gif \"参数提示\") |\n| ![远程推送](https://images.gitee.com/uploads/images/2021/0711/105803_b53e0d7e_297689.png \"远程推送\") | ![历史记录](https://images.gitee.com/uploads/images/2021/0711/105910_f2440ea4_297689.png \"历史记录\") |\n| ![数据源](https://images.gitee.com/uploads/images/2021/0711/105846_7ec51a50_297689.png \"数据源\") | ![全局搜索](https://images.gitee.com/uploads/images/2021/0711/105823_ac18ada7_297689.png \"全局搜索\") |\n\n# 交流群\n\n| 微信群 | QQ群 |\n| ----- | --- |\n| \u003cimg src=\"https://www.ssssssss.org/magic-api/images/wxcode.png\" alt=\"作者微信\"\u003e | \u003cimg src=\"https://www.ssssssss.org/magic-api/images/qq-group-qrcode.png\" alt=\"QQ群\"\u003e |\n| 备注：加群，邀您加入群聊| \u003ca href=\"https://qm.qq.com/cgi-bin/qm/qr?k=38qddUeqrk_x29Xril9a_jxnoCGTmPRF\u0026jump_from=webapi\" target=\"_blank\"\u003e点击加入QQ群：700818216\u003c/a\u003e |\n\n","funding_links":[],"categories":["Java"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssssssss-team%2Fmagic-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssssssss-team%2Fmagic-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssssssss-team%2Fmagic-api/lists"}