Forums Archived

This forum has been archived. No new posts can be made and no new users can sign up. It remains here for reference only.

Find the new forums here

How do I access the API of instances other than ADSInstance through the web?

  • 289 Views
  • Last Post 29 October 2020
  • Topic Is Solved
Senth posted this 29 October 2020

The problem

I want to access the API of one of my Minecraft instances to send console commands to it. If my domain is https://example.com I can access the API of the ADS instance with https://example.com/API/Core/SendConsoleMessage.

I've successfully logged in to the API and tried a bunch of functions, but I don't really know how to access the Minecraft API.

What I've tried

My last option would be to set up another subdomain (https://minecraft01.example.com) to access the Minecraft instance directly.

Question

Is there any simple way I've missed to access the API of other instances?

Order By: Standard | Newest | Votes
Mike posted this 29 October 2020

It's a slightly ungainly URL but it comes out as:

https://example.com/API/ADSModule/Servers/3deeea2a-cb34-41f8-871b-18e2250b2ca5/API/Core/SendConsoleMessage

Where that GUID is to be replaced with the GUID for that instance ID.

You'll also need to login at that particular instance too using the same method.

  • Liked by
  • Senth
Senth posted this 29 October 2020

Thank you! 🙂

This was exactly what I was looking for. I added a rewrite rule in nginx rule to make it a bit simpler to access

rewrite ^/FriendlyInstanceName/API(.*)$ /API/ADSModule/Servers/INSTANCE_GUID/API$1 permanent;

Close