Our 24hbc project: Kickstarter, but teambuilding rather than fundraising
Latest commit e801963 Jun 11, 2012 @steevel steevel Clean up of attr handling, also solves a bug where /api/project/1/use…
…rs didn't return any values.
Permalink
Failed to load latest commit information.
api Use db.json_encode instead of json.dumps Jun 11, 2012
config Added oauth config Jun 11, 2012
models Clean up of attr handling, also solves a bug where /api/project/1/use… Jun 11, 2012
schema Added session support through postgresql Jun 11, 2012
static User settings form Jun 12, 2012
templates Attach session when loading the HTML from server and display active u… Jun 11, 2012
.gitignore Add base template Jun 11, 2012
Makefile
README.md Auth endpoint in API doc Jun 11, 2012
db.py Expand json_encode() to handle lists too. Jun 11, 2012
main.py Skeleton for user profile Jun 12, 2012
requirements.txt
session.py Removed two debug prints Jun 11, 2012
utils.py Add decorator for checking if user have access to modify project. Jun 11, 2012

README.md

teamstarter

Our 24hbc project: Kickstarter, but teambuilding rather than fundraising

Included JavaScript libraries

jQuery 1.7.2
Underscore.js 1.3.3
Mustache.js 0.5.0-dev
Backbone 0.9.2
RequireJS 2.0.1
RequireJS Text Plugin 2.0.0

API documentation for Teamstarter

API Endpoints

All API endpoints reside under the root url /api/1

End point                   Method  Description

/user/auth                  POST    Authenticate user [email, password]
/user/create                POST    Create a new User [email, password]
/user/:user_id              PUT     Modify User [bio]
/user/:user_id              GET     Get User
/user/:user_id/projects     GET     List of Relations associated with user
/user/list                  GET     List of all User objects [(page)]

/project/create             POST    Create a new Project [name, description]
/project/:project_id        PUT     Modify Project [name, description]
/project/:project_id        GET     Get Project
/project/:project_id/users  GET     List Relations associated with project
/project/list               GET     List all Project objects [(page)]

Models

Description of model properties used to describe models in the API

User

email           [varchar 255]           User e-mail
password        [varchar 255]           User Password
bio             [varchar 120]           User biography
created_at      [timestamp]             When user account was created
modified_at     [timestamp]             When user was last modified

Project

name            [varchar 120]           Project name
description     [varchar 65535]         Project description
created_at      [timestamp]             When project was created
modified_at     [timestamp]             When project was last modified

Relation

project         [*Project]              Project in relation
user            [*User]                 User in relation
role            [enum(ADMIN,MEMBER)]    Users role in relation to project
created_at      [timestamp]             When project was created
modified_at     [timestamp]             When project was last modified