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.

Java Backend Technology
Java Backend Technology
Java Backend Technology
Boost Java API Development with magic‑api: No Controllers Needed

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-api

Project Screenshots

Overall screenshot
Overall screenshot
Code hint
Code hint
Debug
Debug
Parameter hint
Parameter hint
Remote push
Remote push
History record
History record
Data source
Data source
Global search
Global search
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

JavaSpring BootAPI developmentrapid developmentmagic-api
Java Backend Technology
Written by

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!

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.