New RestAPI Endpoints & Mission Lua Command#143
Merged
karel26 merged 3 commits intoSpecial-K-s-Flightsim-Bots:developmentfrom Mar 9, 2026
Merged
New RestAPI Endpoints & Mission Lua Command#143karel26 merged 3 commits intoSpecial-K-s-Flightsim-Bots:developmentfrom
karel26 merged 3 commits intoSpecial-K-s-Flightsim-Bots:developmentfrom
Conversation
karel26
approved these changes
Mar 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two new RestAPI endpoints:
Mission Control
[POST] /mission/upload
Must provide:
Mission
[GET] /mission/group/waypoints
You must provide:
server_name,group_name,group_typeso 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.luamust be updated with the new API hook