Skip to content
Vassilis Triglianos edited this page Aug 27, 2013 · 20 revisions

Current Routes

/live/:user/ : Verb: GET Follow a live presentation from user:use. /admin/ : Verb: GET Control your live presentation. /user/:user/upload/ : Verb: POST Upload a presentation archive. (The archive must be located at req.files.upload) /start/:id/ : Initialize a new session with the slides matching id, providing the authenticated use matches the owner of the slides.

Use absolute path to serve files from the public folder. For example to serve the file style.css in the css folder in public,
the path should be /css/style.css and not css/style.css.

All paths should end up with a trailing /.

User

Root

If the user is signed in it redirects to /:user , If not user sees a promotional page that also features sign in or sign up forms

GET /

Homepage

GET /:user

Create new user

GET /register/

Sign in page

GET /sign_in/

Authenticate user

POST /sign_in/

Sign out user

POST /sign_out/

List user account settings

GET /:user/settings/

Update user account settings

PUT /:user/settings/

Check if the supplied parameters exist

GET /users/check/?name=name
Parameters
name
A username to check against.

Presentation

list presentations of user

GET /:user/presentations

list presentations of user that have the specific questions

GET /:user/presentations
Parameters
question
The id of the question in an ObjectId compatible string.

get a presentation with a specific id

GET /:user/presentations/:presentationid
Parameters
slide_id
The string id of the slide as specified inside the html of the presentation.

Create new presentation (upload a file)

POST /:user/presentations

update presentation (upload a file | or content type)

PUT /:user/presentations/:presentationid

display presentation

DELETE /:user/presentations/:presentationid

launch editor for specific presentation

GET /:user/presentations/:presentationid/edit

Question

list all questions of the user

GET /:user/questions/
Parameters
sort
Sort ascending + or descending -
+presentation,-presentation, +date,-date, +name,-name, default:+date.
course
Comma seperated id strings of the courses the question should belong in.
presentation
Comma seperated id strings of the presentations the question should belong in.

get a question with specific id

GET /:user/questions/:questionid

Create new question

POST /:user/questions

update question

PUT /:user/questions/:questionid

display question

DELETE /:user/questions/:questionid

launch editor for specific question

GET /:user/questions/:questionid/edit

Live presentation

Initialize a new session for a specific presentation

POST /:user/presentations/:presentationid
Parameters
start
Starts a new presentation. Empty value
Note: If start is not specified a request that contains valid presentation fields may alter the presentation,

List live presenations for :user

Useful as a permalink and also in case we have more than one live presentations

GET /:user/live

Connect to the specific live presentation

GET  /:user/presentations/:presentationid/live/:liveid
Parameters
role
viewer,presenter,assistant, default: the role of the the user.
view
presentation,ctrl, default: presentation.
Optional
Render presentation in iFrame (used for thumbnails)
GET /:user/presentations/:presentation/iframe
Parameters
slide_id
The string id of the slide as specified inside the html of the presentation.