diff options
author | franck cuny <franck@lumberjaph.net> | 2010-11-01 17:03:42 +0100 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2010-11-01 17:03:42 +0100 |
commit | d1c3bde3722290ca4c1b420f2b9960df24c604ec (patch) | |
tree | e2176e1cb2bedc2eb60b540265830bafb383d7c4 | |
parent | merge (diff) | |
download | net-http-spore-d1c3bde3722290ca4c1b420f2b9960df24c604ec.tar.gz |
add new methods to implement headers and form-data
-rw-r--r-- | t/specs/api.json | 17 |
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" } + } } } |