Skip to content
GarrethDottin edited this page May 1, 2015 · 6 revisions

uid means the current user id. This will be removed when we setup proper authenticated sessions.

rid means the resource id for the given endpoint.

Limitations

Currently, the API has some limitations particularly in relation to authentication. While we’d like to have a completely restful app, we’re starting with a focus on endpoints and we’ll be moving into authentication and session storage.

Endpoints

Tasks

{
    title: String,
    taskUserId: String,
    timeDuration: Number,
    completed: Boolean
} 

POST /api/tasks/

Creates a task for the user with the taskUserId and name fields.

GET /api/tasks/{uid}

Lists all tasks for the user.

GET /api/tasks/{uid}/{rid}

Retrieves the task with the given id.

Blocked Sites

{ 
    site: String, 
    info: String, 
    blockedSiteId: String, 
    active: Boolean
}

GET /api/blocked-sites/{uid}

Lists all blocked sites for the user.

GET /api/blocked-sties/{uid}/{rid}

Retrieves the task with the given id.

Clone this wiki locally