Tibyan submission branch - #9
Open
TibyanSaad wants to merge 9 commits into
Open
Conversation
…t id value and work on ip
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.