Skip to content

Rest Service

Joel Sauvain edited this page Jul 3, 2017 · 2 revisions

Rest-Services

Authentication

path: /auth usage: You need to send two Headers within the request. The request must be a post and the two headers are 'username' and 'password'.

Version

path: /api/version usage: You create a get request and you'll receive the version of the master as json.

Plugins

path: /api/plugins usage: You create a get request and you'll receive a list of loaded plugins as json.

Server

path: /api/server usage: You create a get request with a query parameter called 'server'. In this query parameter there must be the name of the server. You'll receive an answer as json.

Servers

path: /api/servers usage: You create a get request and you'll receive a list of started servers as json.

SpigotServer, BungeeServer, DaemonServer

path: /api/spigotserver, /api/bungeeserver, /api/daemonserver usage: You create a get request and you'll receive a list of all specified servers as json.

Templates

path: /api/templates usage: You create a get request and you'll receive a list of all templates as json.

Template

path: /api/template usage: You create a get request with a query parameter called 'name'. This parameter should contain the name of the template.

Template Upload

path: /api/templateupload usage: You create a put request with a json body containing a list of lines of the template configuration file.

Clone this wiki locally