summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLuiza Pagliari <lpagliari@gmail.com>2016-11-16 19:34:12 -0200
committerGitHub <noreply@github.com>2016-11-16 19:34:12 -0200
commitc76af79471b61afebbb9c535d01d9eb958ff2b1c (patch)
tree5b571fbe8336cbf4ffa7a465cd6b69d678a9126e /doc
parent0497e12d7bef084d3b827c27d3a1cfedf3aa03bc (diff)
parent2341d0980771b4c3d7e2e71a686365992d25e00a (diff)
downloadetherpad-lite-c76af79471b61afebbb9c535d01d9eb958ff2b1c.zip
Merge pull request #3080 from ldidry/document-undocumented-API-function-restoreRevision
Add undocumented API function restoreRevision to doc
Diffstat (limited to 'doc')
-rw-r--r--doc/api/http_api.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/api/http_api.md b/doc/api/http_api.md
index 8d1b64f1..93a9b399 100644
--- a/doc/api/http_api.md
+++ b/doc/api/http_api.md
@@ -363,6 +363,15 @@ returns an object of diffs from 2 points in a pad
* `{"code":0,"message":"ok","data":{"html":"<style>\n.authora_HKIv23mEbachFYfH {background-color: #a979d9}\n.authora_n4gEeMLsv1GivNeh {background-color: #a9b5d9}\n.removed {text-decoration: line-through; -ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=80)'; filter: alpha(opacity=80); opacity: 0.8; }\n</style>Welcome to Etherpad!<br><br>This pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents!<br><br>Get involved with Etherpad at <a href=\"http&#x3a;&#x2F;&#x2F;etherpad&#x2e;org\">http:&#x2F;&#x2F;etherpad.org</a><br><span class=\"authora_HKIv23mEbachFYfH\">aw</span><br><br>","authors":["a.HKIv23mEbachFYfH",""]}}`
* `{"code":4,"message":"no or wrong API Key","data":null}`
+#### restoreRevision(padId, rev)
+ * API >= 1.2.11
+
+Restores revision from past as new changeset
+
+*Example returns:*
+ * {code:0, message:"ok", data:null}
+ * {code: 1, message:"padID does not exist", data: null}
+
### Chat
#### getChatHistory(padID, [start, end])
* API >= 1.2.7