summaryrefslogtreecommitdiff
path: root/t/spec/test1.json
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-08-31 15:40:13 +0200
committerfranck cuny <franck@lumberjaph.net>2010-08-31 15:40:13 +0200
commit945412cd8fad832f7bea42ac3191867287a9a3c0 (patch)
treef6b70e8fce7eefaa2ad01f8d1d3f3ed053d50af6 /t/spec/test1.json
downloadnet-http-api-spec-945412cd8fad832f7bea42ac3191867287a9a3c0.tar.gz
initial import
Diffstat (limited to 't/spec/test1.json')
-rw-r--r--t/spec/test1.json38
1 files changed, 38 insertions, 0 deletions
diff --git a/t/spec/test1.json b/t/spec/test1.json
new file mode 100644
index 0000000..85cb277
--- /dev/null
+++ b/t/spec/test1.json
@@ -0,0 +1,38 @@
+{
+ "declare" : {
+ "api_format_mode" : "content-type",
+ "api_format" : "json"
+ },
+ "methods" : {
+ "add_corpus" : {
+ "params" : [
+ "name",
+ "tasks"
+ ],
+ "required" : [
+ "name",
+ "tasks"
+ ],
+ "expected" : [
+ "200",
+ "201"
+ ],
+ "path" : "/corpus/:name",
+ "method" : "POST"
+ },
+ "corpus" : {
+ "params" : [
+ "name"
+ ],
+ "required" : [
+ "name"
+ ],
+ "expected" : [
+ "200",
+ "204"
+ ],
+ "path" : "/corpus/:name",
+ "method" : "GET"
+ }
+ }
+}