kalviumcommunity/Supply-Chain-Cargo-Management-Maersk-Hackathon
Define API LLD and contract for Cargo Management endpoint and error handling
Open
#14 opened on Oct 1, 2025
documentationgood first issue
Repository metrics
- Stars
- (1 star)
- PR merge metrics
- (No merged PRs in 30d)
Description
Description:
- Establish a low-level API contract to align frontend (Vue.js) and backend (Spring Boot) development.
- Document a sequence flow of a typical API request through Controller, Service, Repository, and DB layers.
- Specify the
POST /api/cargoendpoint including request/response schemas and headers to enable parallel implementation. - Standardize API error response formats for 400, 404, and 500 to ensure consistent client handling.
- Provide a versioned reference document to serve as a blueprint for Week 2 implementation.
Deliverables:
- API sequence diagram: Visualize end-to-end request flow.
- Endpoint spec: Define
POST /api/cargorequest/response. - Success contract: Include
201 CreatedwithLocationheader. - Error schema: Standardize 400/404/500 JSON structures.
- Documentation artifact: Create
docs/lld-api-outline.mdwith version/date.