Mahjong System / API Server

Current Backend Features

This page is a partial implementation focused on backend work. It is an AI-generated demo surface and will be removed later. The main dashboard now keeps only the basic API calls, rounded category units, and a temporary runner entry point.

The full API descriptions live on the documentation page. If you want the product UI to become stricter, share the desired room flow, plugin contract, or function runtime rules.


API categories

Rounded units for the current API groups

Core Calls

Room, player, and room-state basics.

This dashboard keeps the main operations small and readable. Full API descriptions live on the docs page.

Register Method and Test Code

Smoke test function-runner with a temporary endpoint. And Store plugin definitions with the plugin manager.

The temp runner route stores optional code first, then calls function-storage to store Metod Info and dependencies, then calls function-runner to execute. The plugin manager POST route also stores MethodInfo and dependencies but is meant for real plugin definitions that can be called later by game logic.

Plugin Definition

Teach the runtime shape of a plugin.

Register plugin needs Method existence in storage, so it is a good first step to teach the system about a plugin. Uploading plugin resource is a separate step that can be done later when you have the executable source ready.

Implementation Notes

Keep the page honest about its current scope.

The current UI is a partial backend-first demo surface and will be removed once the real product UI is ready.

Basic calls

Keep the dashboard focused on core operations

Create room

Create player

Register plugin definition

Inspect room state

Temporary function-runner call

This endpoint is temporary and exists only for smoke testing the function-runner pipeline.

Live response

Result console

Waiting for the first action...