api/:version/pads/
POST api/:version/pads/
{
'id': 'random pad name/id',
'text': 'Hello World',
'revisionCount': Integer,
'readOnlyId': 'random readonly id'
}POST api/:version/pads/:id
{
'text': 'Welcome text'
} {
'id': 'pad name/id',
'text': 'Hello World',
'revisionCount': Integer,
'readOnlyId': 'random readonly id'
}PUT api/:version/pads/:id
{
'text': 'Hello World'
} {
'id': 'random string',
'text': 'Hello World',
'revisionCount': Integer,
'readOnlyId': 'random readonly id'
}maybe this should be a POST request
GET api/:version/pads
#resource groups api/:version/groups
POST api/:version/groups
DELETE api/:version/groups/:id
GET api/:versions/groups/:id/sessions/
POST api/:version/groups/:id/pads/:id
{
'text': 'Hello World',
'public': Boolean,
'password': 'A secret'
} {
'id': 'This is the pad id (name)',
'text': 'Hello World'
'public': Boolean,
'password': 'A secret'
}GET api/:version/groups/:id/pads/:id
{
'id': 'This is the pad id (name)',
'text': 'Hello World'
'public': Boolean,
'password': 'A secret'
}GET api/:version/groups/:id/pads
[{
'id': 'This is the pad id (name)',
'text': 'Hello World'
'public': Boolean,
'password': 'A secret'
}]or
[padId]DELETE api/:version/groups/:id/sessions/:id
GET api/:version/groups/:id/sessions/:id
{
'id': 'id of the created session',
'authorId': 'id of an existing author',
'expires': Date //Date object or unix timestamp until this session is valid
}POST api/:version/groups/:id/sessions/
{
'authorId': 'id of an existing author',
'expires': Date //Date object or unix timestamp until this session is valid
} {
'id': 'id of the created session',
'authorId': 'id of an existing author',
'expires': Date //Date object or unix timestamp until this session is valid
}#resource authors
api/:version/authors
POST api/:version/authors/
{
'name': String
} {
'name': String
'id': String
}GET api/:version/authors/:id/sessions
[Sessions]