From 27ae48686d43925244aa29787f905e254d709fb0 Mon Sep 17 00:00:00 2001 From: John McLear Date: Wed, 1 Apr 2015 13:56:52 +0100 Subject: [PATCH] reintroduce removed api points that were removed by mistake --- src/node/handler/APIHandler.js | 5 ++++- tests/backend/specs/api/chat.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/node/handler/APIHandler.js b/src/node/handler/APIHandler.js index a9df3abc1..b4d242011 100644 --- a/src/node/handler/APIHandler.js +++ b/src/node/handler/APIHandler.js @@ -417,6 +417,9 @@ var version = , "setHTML" : ["padID", "html"] , "getAttributePool" : ["padID"] , "getRevisionsCount" : ["padID"] + , "getSavedRevisionsCount" : ["padID"] + , "listSavedRevisions" : ["padID"] + , "saveRevision" : ["padID", "rev"] , "getRevisionChangeset" : ["padID", "rev"] , "getLastEdited" : ["padID"] , "deletePad" : ["padID"] @@ -435,10 +438,10 @@ var version = , "sendClientsMessage" : ["padID", "msg"] , "listAllGroups" : [] , "checkToken" : [] + , "appendChatMessage" : ["padID", "text", "authorID", "time"] , "getChatHistory" : ["padID"] , "getChatHistory" : ["padID", "start", "end"] , "getChatHead" : ["padID"] - , "appendChatMessage" : ["padID", "text", "authorID", "time"] , "restoreRevision" : ["padID", "rev"] } }; diff --git a/tests/backend/specs/api/chat.js b/tests/backend/specs/api/chat.js index 159f30da9..59b7edc0a 100644 --- a/tests/backend/specs/api/chat.js +++ b/tests/backend/specs/api/chat.js @@ -32,7 +32,7 @@ describe('API Versioning', function(){ /* Tests performed -> createPad(padID) -> createAuthor([name]) -- should return an authorID - -> appendChatMessage(padID, text, userID, time) + -> appendChatMessage(padID, text, authorID, time) -> getChatHead(padID) -> getChatHistory(padID) */