summary refs log tree commit diff
path: root/t/spec/test1.json
blob: 85cb27755b07d422b16308c877919da28c7ac0db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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"
      }
   }
}