Skip to content

Add basic REST API and docker build for easier integration - #84

Merged
tomarnepedersen merged 19 commits into
mainfrom
rest-api-stc-integration
Feb 20, 2026
Merged

Add basic REST API and docker build for easier integration#84
tomarnepedersen merged 19 commits into
mainfrom
rest-api-stc-integration

Conversation

@restenb

@restenb restenb commented Feb 19, 2026

Copy link
Copy Markdown
Collaborator

The rationale behind this PR is to make the ship traffic generator easier to integrate with by providing a basic REST API, as well as a docker build and Github workflow for pushing the image to a registry.

The REST API supports generating situations from an input JSON that contains data on the situation, own ship, target ships, and encounter settings. These are passed to the existing generator, which has been slightly modified just to support generating both from file (which the current CLI uses), and JSON input, with the same code.

The API can also be used to return any baseline situation by it's id. OpenAPI docs are provided.

@tomarnepedersen tomarnepedersen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and found ok.

@tomarnepedersen
tomarnepedersen merged commit 5278f8c into main Feb 20, 2026
9 checks passed
@tomarnepedersen
tomarnepedersen deleted the rest-api-stc-integration branch February 20, 2026 07:45
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