From 25c13799c291c76d48c7ef19d17bde445eb45209 Mon Sep 17 00:00:00 2001 From: lyf666 Date: Mon, 20 Feb 2017 13:42:00 +0800 Subject: [PATCH] update api.txt --- src/main/webapp/doc/api.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/webapp/doc/api.txt b/src/main/webapp/doc/api.txt index 6e54bde..2dcdb56 100644 --- a/src/main/webapp/doc/api.txt +++ b/src/main/webapp/doc/api.txt @@ -12,6 +12,14 @@ save (json required) { return saved dict json with id } update (id required, json required) { + json { + filter: {k:v...}, + update: { + $set: {k,v...}, + $unset: [k1,k2...], + $rename: {k,newK...} + } + } return {result : true or false} } delete (id required) {