-
Notifications
You must be signed in to change notification settings - Fork 0
/
bcbento.json
69 lines (69 loc) · 1.63 KB
/
bcbento.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
58
59
60
61
62
63
64
65
66
67
68
69
{
"openapi": "3.0.3",
"info": {
"title": "bcbento",
"description": "API for Boston College Libraries bento search services",
"version": "1.0.0"
},
"servers": [
{
"url": "https://library.bc.edu/bcbento-server",
"description": "production server"
}
],
"paths": {
"/books": {
"get": {
"summary": "Search books",
"parameters": [
{
"$ref": "#/components/parameters/queryParam"
},
{
"$ref": "#/components/parameters/limitParam"
}
],
"responses": {
"200": {
"description": "Successfully returned search results"
},
"400": {
"description": "Bad request syntax"
},
"500": {
"description": "Something went wrong with the bento server"
},
"502": {
"description": "The upstream search service (e.g. Primo) returned an error"
},
"504": {
"description": "The upstream search service (e.g. Primo) timed out without responding"
}
}
}
}
},
"components": {
"parameters": {
"queryParam": {
"name": "q",
"in": "query",
"description": "the search query",
"required": true,
"example": "otters"
},
"limitParam": {
"name": "limit",
"in": "query",
"description": "maximum number of items to return",
"required": false,
"schema": {
"type": "integer",
"maximum": 100,
"minimum": 0,
"default": 3
}
}
}
}
}