Introducing magic‑api: A Java Rapid Development Framework for HTTP APIs

The article presents magic‑api, a Java‑based rapid‑development framework that lets developers create HTTP APIs without writing Controllers, Services, or Mappers, outlines its key features, provides quick‑start Maven and configuration instructions, and showcases screenshots of the UI and debugging tools.

Java Architect Essentials
Java Architect Essentials
Java Architect Essentials
Introducing magic‑api: A Java Rapid Development Framework for HTTP APIs

magic‑api is a Java‑based rapid‑development framework that enables developers to build HTTP API interfaces through a visual UI, automatically mapping them to HTTP endpoints without the need to define Controllers, Services, DAOs, Mappers, XML, or VO objects.

Access the UI at http://localhost:9999/magic/web. Documentation, online demo, and source code are available via the provided links.

Features

Supports MySQL, MariaDB, Oracle, DB2, PostgreSQL, SQLServer and other JDBC‑compliant databases.

Supports NoSQL databases such as Redis and MongoDB.

Cluster deployment and automatic API synchronization.

Pagination queries with custom pagination support.

Multiple data‑source configuration with online data‑source management.

SQL caching and custom cache strategies.

Custom JSON and pagination result formats.

API permission configuration, interceptors, and runtime data‑source switching.

Swagger documentation generation.

Dynamic script compilation via the magic‑script engine without restarting.

Linq‑style queries for easier association and transformation.

Support for SQL concatenation, placeholders, conditional logic, and transactions.

File upload, download, and image output.

Script version comparison and recovery.

Intelligent code hints, parameter hints, hover tips, and error diagnostics.

Import of Spring beans and Java classes.

Online debugging.

Extensible custom tools, modules, types, dialects, and column‑name conversion.

Quick Start

Maven Dependency

<!-- Use 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
# Resource location (classpath prefix means read‑only)
magic-api.resource.location=/data/magic-api

Screenshots

Overall screenshot
Overall screenshot
Code hint
Code hint
Debug
Debug
Parameter hint
Parameter hint

For more resources, the article also shares links to the documentation, demo site, and open‑source repository, and invites readers to join the community group for further learning.

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.

APIrapid development
Java Architect Essentials
Written by

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.

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.