summary refs log tree commit diff
path: root/t/specs
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-11-01 17:03:42 +0100
committerfranck cuny <franck@lumberjaph.net>2010-11-01 17:03:42 +0100
commitd1c3bde3722290ca4c1b420f2b9960df24c604ec (patch)
treee2176e1cb2bedc2eb60b540265830bafb383d7c4 /t/specs
parentmerge (diff)
downloadnet-http-spore-d1c3bde3722290ca4c1b420f2b9960df24c604ec.tar.gz
add new methods to implement headers and form-data
Diffstat (limited to 't/specs')
-rw-r--r--t/specs/api.json17
1 files changed, 17 insertions, 0 deletions
diff --git a/t/specs/api.json b/t/specs/api.json
index 42e3c25..a89d147 100644
--- a/t/specs/api.json
+++ b/t/specs/api.json
@@ -19,6 +19,23 @@
             ],
             "path" : "/show",
             "method" : "GET"
+        },
+      "add_email" : {
+        "path" : "/email",
+        "method" : "POST",
+        "form-data" : {
+          "email" : ":email"
+        },
+        "required_params" : [
+          "email"
+        ]
+      },
+      "attach_file" : {
+        "path":"/file",
+        "method":"POST",
+        "headers": {
+          "content-type":":content_type"
         }
+      }
     }
 }