Summary
The dref3 API currently exposes appeal_id, but the value it holds is an appeal code (e.g. MDRTJ032), not an appeal DB pk.
On the current API, ?appeal_id=6 takes a dref.pk, not an appeal.pk, so the value is neither an appeal ID nor an appeal code. We rename to appeal_code and, make the filter multi-value and only use the appeal code
Breaking changes
|
Before |
After |
| Response field |
appeal_id: "MDRTJ032" |
appeal_code: "MDRTJ032" |
| Filter param |
?appeal_id=6 (dref.pk) |
?appeal_codes=MDRAM010,MDRTJ032 (comma-separated appeal codes) |
Notes:
- Filter is plural (
appeal_codes) because it accepts multiple values; response field stays singular (appeal_code).
- pk-based filtering is dropped. (Confirm: does any consumer still need it?)
- Detail lookup by appeal code is unaffected:
/api/v2/dref3/MDRNG043/ keeps working.
Current behaviour verified on test envs
alpha-3 = new dref3 changes, alpha-4 = existing dref3; both share the same DB dump from staging.
- Detail by appeal code — works on both:
appeal_code_prefix — works on both:
appeal_id — single value works, semantics differ:
- Multiple values — not supported on either env, both return
[]:
Tasks
Summary
The
dref3API currently exposesappeal_id, but the value it holds is an appeal code (e.g.MDRTJ032), not an appeal DB pk.On the current API,
?appeal_id=6takes adref.pk, not anappeal.pk, so the value is neither an appeal ID nor an appeal code. We rename toappeal_codeand, make the filter multi-value and only use the appeal codeBreaking changes
appeal_id: "MDRTJ032"appeal_code: "MDRTJ032"?appeal_id=6(dref.pk)?appeal_codes=MDRAM010,MDRTJ032(comma-separated appeal codes)Notes:
appeal_codes) because it accepts multiple values; response field stays singular (appeal_code)./api/v2/dref3/MDRNG043/keeps working.Current behaviour verified on test envs
alpha-3= new dref3 changes,alpha-4= existing dref3; both share the same DB dump from staging.appeal_code_prefix— works on both:appeal_id— single value works, semantics differ:dref.pk(notappeal.pk), which resolves to appeal codeMDRAM010[]:Tasks
appeal_code. It holds the Appeal Code.appeal_id. It will hold the Appeal DB PK.appeal_codes. It takes a list of appeal codes, split by commas.appeal_idwithappeal_ids. It takes a list of Appeal DB PK, split by commas.