Opened at 2011-10-02T00:42:22Z
Closed at 2011-10-13T16:40:51Z
#1552 closed defect (fixed)
web-API: replace ?mutable-type with ?format={chk,sdmf,mdmf}
Reported by: | davidsarah | Owned by: | kevan |
---|---|---|---|
Priority: | major | Milestone: | 1.9.0 |
Component: | code-frontend-web | Version: | 1.9.0a2 |
Keywords: | weapi mutable mdmf forward-compatibility review-needed | Cc: | |
Launchpad Bug: |
Description
We agreed (on IRC) to change the ?mutable-type= query parameter to a ?format= parameter with options chk, sdmf, and mdmf. For compatibility, the ?mutable=true flag would still be accepted and would mean the same as ?format=sdmf (at least for now). The values should be case-insensitive.
This way, if we add a new immutable format in future, it won't require a new query parameter. This also makes the implementation of #1547 easier.
Attachments (2)
Change History (6)
comment:1 Changed at 2011-10-02T01:08:08Z by davidsarah
- Owner set to kevan
comment:2 Changed at 2011-10-02T01:34:48Z by davidsarah
comment:3 Changed at 2011-10-02T14:02:45Z by davidsarah
- Keywords review-needed added
comment:4 Changed at 2011-10-13T16:40:51Z by warner
- Resolution set to fixed
- Status changed from new to closed
fixed by bd642739cb5b4771 and 01b00dc7dca9108f
Note: See
TracTickets for help on using
tickets.
I'm writing tests for this, so Kevan, you only need to do the docs and implementation.
Note that there's a "mutable-type" field in the returned JSON that should also be changed to "format", and should have the value "chk" for immutable uploads.