Skip to content

refactor(web_service): reduce boilerplate and add unit tests#190

Merged
JanZachmann merged 1 commit intoomnect:mainfrom
JanZachmann:fix-webservice-shutdown
Feb 24, 2026
Merged

refactor(web_service): reduce boilerplate and add unit tests#190
JanZachmann merged 1 commit intoomnect:mainfrom
JanZachmann:fix-webservice-shutdown

Conversation

@JanZachmann
Copy link
Contributor

Introduce json_command_handler! macro, exec_simple_command and log_error_response helpers to eliminate repetitive handler code. Switch register_publish_endpoint to web::Json extractor. Add comprehensive unit tests for all web service endpoints.

Introduce `json_command_handler!` macro, `exec_simple_command` and
`log_error_response` helpers to eliminate repetitive handler code.
Switch `register_publish_endpoint` to `web::Json` extractor.
Add comprehensive unit tests for all web service endpoints.

Signed-off-by: Jan Zachmann <50990105+JanZachmann@users.noreply.github.com>
@JanZachmann JanZachmann requested a review from mlilien February 23, 2026 11:54
@JanZachmann JanZachmann merged commit 54756a5 into omnect:main Feb 24, 2026
3 checks passed
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