Skip to content

Server API

Reyad Attiyat edited this page Jan 26, 2015 · 3 revisions

AJAX API

Create and Authenticate Anonymous User

POST /api/user
request: {
    anonymous: true
}
response: {
    id: "UniqueID",
    name: "Anonymous User Name",
    authToken: "Unique authentication token"
}

Authenticate User

GET /api/user
request: {
    login: "user name or email",
    password: "Raw Password",
    anonymous: false
}
response: {
    id: "UniqueID",
    name: "User Name/Email",
    authToken: "Unique authentication token"
}

User

Requests are made with Backbone.Model api these include(save(), fetch(), sync()). These functions autogenerate the request as a json object.

All requests must append a valid authentication token.

Meeting Room

Requests are made with Backbone.Model api these include(save(), fetch(), sync()). These functions autogenerate the request as a json object.

All requests must append a valid authentication token.

WebSocket API

T.B.D

Clone this wiki locally