-
Notifications
You must be signed in to change notification settings - Fork 2
/
meow.json
59 lines (56 loc) · 1.55 KB
/
meow.json
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"openapi" : "3.0.1",
"info" : {
"title" : "meow facts",
"description" : "A simple API that returns a random fact about cats",
"version" : "0.1.1"
},
"servers" : [ {
"url" : "https://meowfacts.herokuapp.com"
} ],
"paths" : {
"/" : {
"get" : {
"description" : "Get random facts about cats",
"operationId" : "facts",
"parameters" : [ {
"name" : "count",
"description" : "The number of facts to return",
"in" : "query",
"required" : false,
"style" : "form",
"explode" : true,
"schema" : {
"type" : "string"
},
"example" : "3"
}, {
"name" : "lang",
"in" : "query",
"required" : false,
"style" : "form",
"description" : "The language to return the facts",
"explode" : true,
"schema" : {
"type" : "string",
"default" : "eng",
"enum": ["ces", "eng", "esp", "esp", "tl", "fra", "ger", "por", "rus", "ukr", "ud", "ces-cz", "eng-us", "esp-es", "esp-mx", "tl-fil", "fra-fr", "ger-de", "por-br", "rus-ru", "ukr-ua", "ud-urd"]
},
"example" : "eng"
} ],
"responses" : {
"200" : {
"description" : "A list of facts about cats",
"content" : {
"application/json; charset=utf-8" : {
"schema" : { },
"examples" : { }
}
}
}
}
}
}
},
"components" : { }
}