Introducing magic-api: A Java Rapid API Development Framework
magic-api is a Java‑based rapid API development framework that lets developers create HTTP interfaces through a UI without writing Controllers, Services, DAOs, or XML, offering extensive database support, dynamic scripting, Swagger generation, and easy Spring Boot integration.
magic-api is a Java‑based rapid API development framework that enables developers to design HTTP interfaces via a built‑in UI, automatically mapping them to HTTP endpoints without the need to write Controllers, Services, DAOs, Mappers, XML, or VO classes.
Key Features
Supports relational databases such as MySQL, MariaDB, Oracle, DB2, PostgreSQL, SQLServer via JDBC.
Supports NoSQL databases like Redis and MongoDB.
Cluster deployment and automatic interface synchronization.
Pagination queries with customizable pagination.
Multiple data source configuration and online data‑source management.
SQL caching and custom cache strategies.
Custom JSON and pagination result formats.
Interface permission configuration and interceptor support.
Runtime dynamic data‑source switching.
Swagger documentation generation.
Dynamic script compilation via magic‑script engine without restart.
Linq‑style queries for easier association and transformation.
Full SQL support including concatenation, placeholders, conditional logic, and transaction handling.
File upload/download and image output capabilities.
Script version history comparison and restoration.
Intelligent code assistance with parameter hints, hover tips, and error detection.
Import of Spring beans and Java classes.
Online debugging and custom tool/module extensions.
Quick Start
Maven Dependency
<!-- Add as a Spring Boot starter -->
<dependency>
<groupId>org.ssssssss</groupId>
<artifactId>magic-api-spring-boot-starter</artifactId>
<version>1.7.1</version>
</dependency>application.properties Configuration
server.port=9999
# UI entry point
magic-api.web=/magic/web
# Resource location (classpath = read‑only)
magic-api.resource.location=/data/magic-apiAfter starting the application, access the UI at http://localhost:9999/magic/web . Documentation is available at https://ssssssss.org and an online demo at https://magic-api.ssssssss.org .
The project’s source code is hosted on Gitee: https://gitee.com/ssssssss-team/magic-api .
For further learning, the author invites readers to join the architecture community group by replying “加群”.
Java Architect Essentials
Committed to sharing quality articles and tutorials to help Java programmers progress from junior to mid-level to senior architect. We curate high-quality learning resources, interview questions, videos, and projects from across the internet to help you systematically improve your Java architecture skills. Follow and reply '1024' to get Java programming resources. Learn together, grow together.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.