Skip to content

API Methods

depascaldc edited this page Jul 2, 2020 · 1 revision

The API the Servermanager provides...


BASE URL https://your.domain.xyz:<port in servermanager.properies>


Run Command on the server

URL : /runCommand/<API_KEY from servermanager.properties>/

Query Params (cannot be null): ?cmd=<command to execute at server>

URL Example: [/runCommand/<API_KEY from servermanager.properties>?cmd=<command](https://your.domain.xyz:/runCommand/<API_KEY from servermanager.properties>?cmd=help)

Method : GET

Auth required : YES ( PER HEADER >> key: "Authorization" value: <API_AUTH from servermanager.properties> )


Responses

On Success:

Code : 200 OK

Content : type text (In this example the command was successful executed.)

OK EXECUTED

On Error:

Code : 409 Conflict

Content : type json

{
    "error": "Error message"
}