Skip to content

Tibyan submission branch - #9

Open
TibyanSaad wants to merge 9 commits into
CodelineAtyab:mainfrom
TibyanSaad:tibyan-submission-branch
Open

Tibyan submission branch#9
TibyanSaad wants to merge 9 commits into
CodelineAtyab:mainfrom
TibyanSaad:tibyan-submission-branch

Conversation

@TibyanSaad

Copy link
Copy Markdown

A Spring Boot REST API that decodes a custom string encoding format and stores the results in an Oracle XE database. The encoding works by mapping characters to numbers (a=1 through z=26, _=0), where each input string contains back-to-back packages — each package has a count followed by that many values, and the output is the sum of each package.
The codebase is split cleanly into four layers — Sequence as the pure domain object, SequenceHistory handling all DB mapping, SequenceService bridging the two, and SequenceController exposing the REST endpoints. Kept JPA annotations out of the business logic entirely so the two concerns don't bleed into each other.
Added full CRUD support via GET, PUT, and DELETE endpoints, client IP tracking on every request, and input validation that rejects anything outside a-z and _. The decoder also handles edge cases like malformed packages, unterminated z-chains, and mismatched counts rather than failing silently.
Wired everything up to Oracle XE with Hibernate and deployed the JAR as a systemd service on Oracle Linux so it starts automatically on boot and logs through journalctl.

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.

1 participant