Skip to content
GarrethDottin edited this page May 8, 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/users/{uid}/tasks/

Creates a task for the user with the userId and title fields.

GET /api/users/{uid}/tasks/{uid}

Lists all tasks for the user.

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

Retrieves the task with the given id.

Blocked Sites

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