Skip to content

New RestAPI Endpoints & Mission Lua Command#143

Merged
karel26 merged 3 commits intoSpecial-K-s-Flightsim-Bots:developmentfrom
pschilly:development
Mar 9, 2026
Merged

New RestAPI Endpoints & Mission Lua Command#143
karel26 merged 3 commits intoSpecial-K-s-Flightsim-Bots:developmentfrom
pschilly:development

Conversation

@pschilly
Copy link
Contributor

@pschilly pschilly commented Mar 6, 2026

Two new RestAPI endpoints:

Mission Control

[POST] /mission/upload

Uploads a new mission to the provided server & adds it to the list to load. Allows for a flag to load after to immediately load the mission or not.

Must provide:

  • server_name
  • file (the actual file upload)
  • filename (the name of the miz, including extension)
  • load_after [bool: true | false] allows you to make it load the mission immediately after upload or not

Mission

[GET] /mission/group/waypoints

Returns an array of the waypoints for a group

You must provide: server_name, group_name, group_type so that DCS lua can efficiently search for the group.
Without providing the group type [plane, helicopter, vehicle, ship, static] it would have to search through all the tables which can be significantly less efficient.

The return, upon success:

{
  "group_name": "Red Border",
  "group_type": "helicopter",
  "waypoints": {
    "wp1": {
      "lon": 41.630362633071,
      "lat": 36.622040335212
    },
    "wp2": {
      "lon": 40.012375721709,
      "lat": 36.636857793348
    },
    "wp3": {
      "lon": 38.512230071799,
      "lat": 36.586548739589
    }
  }
}

In the event you provide the wrong group type, the error return is - Error 404:

{
  "detail": "Group 'Red Border' was not found under the 'plane' category."
}

Will require a restart of the server - as the commands.lua must be updated with the new API hook

@karel26 karel26 merged commit 70f7b01 into Special-K-s-Flightsim-Bots:development Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants