Skip to content

feat(backend, http): add HTTP API for ADJ catalogs and WebSocket upgrade support - #676

Merged
pminmic merged 35 commits into
new-backendfrom
backend/http
Nov 17, 2026
Merged

pminmic merged 35 commits into
new-backendfrom
backend/http

Conversation

@pminmic

@pminmic pminmic commented Nov 13, 2026 •

Copy link
Copy Markdown

Features

software-core

  • New http feature:
    • Serializable response models for data, order, and protection catalogs.
    • JSON examples in src/model/http/example/.
    • New Adj methods to build the response catalogs.
  • New crate-private utils module with serialization helpers.
  • Documentation for the new HTTP models.

station

  • New Axum HTTP server with handlers for:
    • /backend/adj/DataPackets
    • /backend/adj/OrderPackets
    • /backend/adj/ProtectionPackets
  • Catalogs are serialized once at startup and reused across requests.
  • WebSocket upgrades at /backend/ws, forwarding connections to a channel for future message handling.
  • Allowed all CORS origins, and cache policy: no-cache.
  • Tests for catalog responses, WebSocket upgrades, and server configuration.
  • Basic server startup in main.rs for manual testing.

@JavierRibaldelRio JavierRibaldelRio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In general the module is fine, however there are critical mistakes that must be solved.

May be it is better o include adj/http inside of model instead of adj as you commented in the workshop.

Comment thread backend/crates/core/src/adj.rs Resolved
Comment thread backend/crates/core/src/adj.rs Resolved
Comment thread backend/crates/core/src/adj.rs Resolved
Comment thread backend/crates/station/src/http.rs Resolved
Comment thread backend/crates/core/src/adj.rs Resolved

@JavierRibaldelRio JavierRibaldelRio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In general lines, review all documentation and its fine

cargo docs returns warnings as so cargo clippy --workspace -- -D warnings

Review al this and should be fine

Comment thread backend/crates/core/src/adj/http.rs Resolved
Comment thread backend/crates/station/src/http.rs Resolved
Comment thread backend/crates/core/src/adj/http.rs Resolved
Comment thread backend/crates/core/src/adj/http.rs Resolved

@JavierRibaldelRio JavierRibaldelRio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Correct this little things

@GaziH GaziH left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Aside from what Javier mentioned, looks good!

@pminmic
pminmic merged commit 0873c32 into new-backend Nov 17, 2026
2 checks passed
@pminmic
pminmic deleted the backend/http branch November 17, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants