Local API (#982)

* Introduce API scelleton

* Raw impl for session

* Simple state endpoint

* Apply _body naming

* Finalize session testing and comment out tons of useless code

* Clean and refactor part1

* Clean and refactor part2

* Clean and refactor part2

* Clean and refactor part2

* Clean and refactor part2

* Refactor middleware

* Refactor middleware

* Clean and refactor part3

* TDD and 2 beers

* TDD and 2 beers

* Complete state endpoints

* You can only set what is already present

* Use only JSON as response

* Use default logger

* Improve auth extraction

* Extend api command with more args

* Adjust API messages
This commit is contained in:
Henry Ruhs
2025-11-17 08:36:31 +01:00
committed by henryruhs
parent f1149ebc84
commit 87678da498
20 changed files with 647 additions and 79 deletions
+1
View File
@@ -31,6 +31,7 @@ commands:
batch-run run the program in batch mode
force-download force automate downloads and exit
benchmark benchmark the program
api start the API server
job-list list jobs by status
job-create create a drafted job
job-submit submit a drafted job to become a queued job