mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
tidy up and re-organize
This commit is contained in:
parent
c0679980bf
commit
5434d2118d
3 changed files with 40 additions and 42 deletions
38
tests/backend/specs/api/sessionsAndGroups.js
Normal file
38
tests/backend/specs/api/sessionsAndGroups.js
Normal file
|
@ -0,0 +1,38 @@
|
|||
/* Endpoints Still to interact with..
|
||||
padUsersCount(padID)
|
||||
setPublicStatus(padID, publicStatus)
|
||||
getPublicStatus(padID)
|
||||
setPassword(padID, password)
|
||||
isPasswordProtected(padID)
|
||||
listAuthorsOfPad(padID)
|
||||
getLastEdited(padID)
|
||||
listSessionsOfGroup(groupID)
|
||||
getSessionInfo(sessionID)
|
||||
deleteSession(sessionID)
|
||||
createSession(groupID, authorID, validUntil)
|
||||
listPadsOfAuthor(authorID)
|
||||
createAuthorIfNotExistsFor(authorMapper [, name])
|
||||
createAuthor([name])
|
||||
createGroupPad(groupID, padName [, text])
|
||||
listPads(groupID)
|
||||
deleteGroup(groupID)
|
||||
createGroupIfNotExistsFor(groupMapper)
|
||||
createGroup()
|
||||
*/
|
||||
|
||||
|
||||
var endPoint = function(point){
|
||||
return '/api/'+apiVersion+'/'+point+'?apikey='+apiKey;
|
||||
}
|
||||
|
||||
function makeid()
|
||||
{
|
||||
var text = "";
|
||||
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
||||
|
||||
for( var i=0; i < 5; i++ ){
|
||||
text += possible.charAt(Math.floor(Math.random() * possible.length));
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue