Skip to content
Timothy Fike edited this page Jul 11, 2016 · 3 revisions

All endpoints can be accessed with HTTP requests or socket events. All HTTP routes start with "/api/minecraft-integration/" (e.g. /api/minecraft-integration/server/0/pings) All socket events begin with "plugins.MinecraftIntegration." and parameters are passed in the data object of the request.

Reading

Servers Configuration

Route: servers Socket: getServers

Returns an array of the server configuration.

Active Servers Configuration

Route: servers/active Socket: getActiveServers

Returns an array of the server configuration of all active servers.

server

Returns an array of all server ids.

server/:status

Returns an array of all active or inactive server ids.

server/:sid

Returns a server object with an id of :sid.

server/:sid/ping

Returns the most recent ping object for the server.

server/:sid/pings

Returns an array of the 30 most recent ping objects for the server.

server/:sid/pings/:pings

Returns an array of the :pings most recent ping objects for the server.