Permalink
Browse files

initial import

  • Loading branch information...
0 parents commit dad53039ca774b766c96309b21c893334195c51a @franckcuny committed Sep 13, 2010
Showing with 151 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +13 −0 README
  3. +77 −0 apps/couchdb.json
  4. +33 −0 services/github.json
  5. +27 −0 services/twitter.json
@@ -0,0 +1 @@
+*.yaml
@@ -0,0 +1,13 @@
+# SPORE - Specification to a POrtable Rest Environment
+
+## DESCRIPTION
+
+## SPECIFICATIONS
+
+### APPS
+
+Description for applications (couchdb, ...)
+
+### SERVICES
+
+Descriptions for services (twitter, github, ...)
@@ -0,0 +1,77 @@
+{
+ "version" : "0.1",
+ "methods" : {
+ "create_document_without_id" : {
+ "required" : [
+ "database"
+ ],
+ "path" : "/:database",
+ "method" : "POST"
+ },
+ "get_all_documents" : {
+ "params" : [
+ "descending",
+ "startkey",
+ "endkey",
+ "limit",
+ "include_docs"
+ ],
+ "required" : [
+ "database"
+ ],
+ "path" : "/:database/_all_docs",
+ "method" : "GET"
+ },
+ "create_document_with_id" : {
+ "required" : [
+ "database",
+ "doc_id"
+ ],
+ "path" : "/:database/:doc_id",
+ "method" : "POST"
+ },
+ "get_document" : {
+ "params" : [
+ "rev",
+ "revs"
+ ],
+ "required" : [
+ "database",
+ "doc_id"
+ ],
+ "path" : "/:database/:doc_id",
+ "method" : "GET"
+ },
+ "get_all_documents_by_seq" : {
+ "params" : [
+ "startkey",
+ "endkey",
+ "limit",
+ "include_docs"
+ ],
+ "required" : [
+ "database"
+ ],
+ "path" : "/:database/_all_docs_by_seq",
+ "method" : "GET"
+ },
+ "delete_document" : {
+ "params" : [
+ "rev"
+ ],
+ "required" : [
+ "database",
+ "doc_id"
+ ],
+ "path" : "/:database/:doc_id",
+ "method" : "DELETE"
+ }
+ },
+ "api_format" : [
+ "json"
+ ],
+ "name" : "CouchDB",
+ "author" : [
+ "franck cuny <franck@lumberjaph.net>"
+ ]
+}
@@ -0,0 +1,33 @@
+{
+ "declare" : {
+ "api_base_url" : "http://github.com/api/v2/",
+ "api_format_mode" : "content-type",
+ "api_format" : "json"
+ },
+ "methods" : {
+ "user_information" : {
+ "params" : [
+ "username",
+ "format"
+ ],
+ "required" : [
+ "username",
+ "format"
+ ],
+ "path" : "/:format/user/show/:username",
+ "method" : "GET"
+ },
+ "user_following" : {
+ "params" : [
+ "user",
+ "format"
+ ],
+ "required" : [
+ "user",
+ "format"
+ ],
+ "path" : "/:format/user/show/:user/followers",
+ "method" : "GET"
+ }
+ }
+}
@@ -0,0 +1,27 @@
+{
+ "declare" : {
+ "api_base_url" : "http://api.twitter.com/1",
+ "api_format_mode" : "append",
+ "api_format" : "json"
+ },
+ "methods" : {
+ "public_timeline" : {
+ "params" : [
+ "skip_user"
+ ],
+ "path" : "/statuses/public_timeline",
+ "method" : "GET"
+ },
+ "home_timeline" : {
+ "params" : [
+ "since_id",
+ "max_id",
+ "count",
+ "page",
+ "skip_user"
+ ],
+ "path" : "/statuses/home_timeline",
+ "method" : "GET"
+ }
+ }
+}

0 comments on commit dad5303

Please sign in to comment.