ahdinosaur / bigspace

an infinite space of resources
MIT License
1 stars 1 forks source link

add gist resource #68

Open ahdinosaur opened 11 years ago

ahdinosaur commented 11 years ago

gist resource does not use github, however it emulates a github gist. the idea is that in the future we will add gist-github that has the exact same methods with the exact same argument signatures, instead it uses node-github (https://github.com/ajaxorg/node-github) via the github resource (https://github.com/ahdinosaur/github) to be persisted on github.com.

gist resource has 3 properties: description, public, and files (based on http://ajaxorg.github.io/node-github/#gists.prototype.create)

description is optional string.

public is required boolean

files is required object where keys are file names and values are file contents.