Boost Java API Development with magic‑api: No Controllers Needed
magic‑api is a Java‑based rapid API development framework that lets you create HTTP endpoints through a UI without writing Controllers, Services, DAOs, XML or VO files, supporting multiple databases, clustering, pagination, custom scripts, and Swagger documentation.
magic‑api is a Java‑based rapid API development framework. By writing interfaces, the framework automatically generates HTTP endpoints through its UI, eliminating the need to define Controllers, Services, DAOs, Mappers, XML files, or VO classes.
Access the UI at http://localhost:9999/magic/web. Documentation is available at https://ssssssss.org, with an online demo at https://magic-api.ssssssss.org and source code on Gitee.
Features
Supports MySQL, MariaDB, Oracle, DB2, PostgreSQL, SQLServer and any JDBC‑compliant database.
Supports NoSQL databases such as Redis and MongoDB.
Cluster deployment and automatic interface synchronization.
Pagination queries and custom pagination.
Multiple data source configuration with online editing.
SQL caching and custom SQL cache.
Custom JSON results and custom pagination results.
Interface permission configuration and interceptors.
Runtime dynamic data source switching.
Swagger API documentation generation.
Dynamic script compilation via magic‑script engine without restart.
Linq‑style queries for easier association and transformation.
Database transaction support and advanced SQL syntax (concatenation, placeholders, conditional logic).
File upload, download, and image output.
Script version comparison and restoration.
Intelligent code hints, parameter hints, hover tips, and error detection.
Import Spring beans and Java classes.
Online debugging.
Custom tool classes, modules, type extensions, dialects, and column name conversion.
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
server.port=9999
# UI entry point
magic-api.web=/magic/web
# File storage location (classpath prefix = read‑only mode)
magic-api.resource.location=/data/magic-apiProject Screenshots
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Java Backend Technology
Focus on Java-related technologies: SSM, Spring ecosystem, microservices, MySQL, MyCat, clustering, distributed systems, middleware, Linux, networking, multithreading. Occasionally cover DevOps tools like Jenkins, Nexus, Docker, and ELK. Also share technical insights from time to time, committed to Java full-stack development!
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.
