X-Git-Url: https://git.ktnx.net/?a=blobdiff_plain;f=doc%2Fprotocol.md;h=7d5de4e880d5364bdd5a990c4d38dde35e94606c;hb=6ef15e84e77bb06afb4e6b95847f90f49d53ab2f;hp=25ab284d2067f48cc2937603799867ce70b67c6e;hpb=effa4911c51a82739eaacdf416e48ea2cdab6339;p=lsl.git diff --git a/doc/protocol.md b/doc/protocol.md index 25ab284..7d5de4e 100644 --- a/doc/protocol.md +++ b/doc/protocol.md @@ -132,3 +132,14 @@ Possible error responses: the differences to the user and either cancel the request and keep the newly fetched data as current, or re-submit the change using the fresh version number. + +DELETE /list/$list_id/$item_id +------------------------------ + +Deletes a list item. No request body. Always succeeds, even if the list item +doesn't exist server-side, in which case the `list_version` isn't changed. + +Returns JSON object with the following keys: + + - `list_version`: the new version of the shopping list whose item was deleted. + - `lists_version`: the current version of the list of shopping lists