feat(backend): add draft validation and single-record draft read endpoints
add backend endpoint for draft validation add single-record read endpoints for draft entities support targeted draft inspection and version-aware validation flows
This commit is contained in:
@@ -154,3 +154,13 @@ Validate:
|
||||
- returned record belongs to current draft scheme_version_id
|
||||
- single-entity endpoints match items visible in draft structure
|
||||
- missing draft record returns 404, not 500
|
||||
|
||||
|
||||
Additional draft read-side stale checks:
|
||||
- GET /api/v1/schemes/{scheme_id}/draft/structure?expected_scheme_version_id={current_version_id} -> 200
|
||||
- GET /api/v1/schemes/{scheme_id}/draft/compare-preview?expected_scheme_version_id={current_version_id} -> 200
|
||||
- GET /api/v1/schemes/{scheme_id}/draft/seats/records/{seat_record_id}?expected_scheme_version_id={current_version_id} -> 200
|
||||
- GET /api/v1/schemes/{scheme_id}/draft/sectors/records/{sector_record_id}?expected_scheme_version_id={current_version_id} -> 200
|
||||
- GET /api/v1/schemes/{scheme_id}/draft/groups/records/{group_record_id}?expected_scheme_version_id={current_version_id} -> 200
|
||||
- same endpoints with stale expected_scheme_version_id -> 409
|
||||
|
||||
|
||||
Reference in New Issue
Block a user