-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathopenapi.json
57 lines (57 loc) · 1.47 KB
/
openapi.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
{
"info": {
"title": "Library Books API",
"version": "1.0.0",
"description": "API to retrieve information from UK public library catalogues about library books",
"contact": {
"name": "Libraries Hacked",
"url": "https://www.librarieshacked.org",
"email": "[email protected]"
}
},
"host": "https://www.librarybooks.uk",
"servers": [
{
"url": "https://www.librarybooks.uk/"
}
],
"openapi": "3.0.0",
"paths": {
"/api/availability/{isbn}": {
"summary": "Book title availability",
"get": {
"tags": [
"Availability"
],
"description": "Return the availability of a particular title",
"parameters": [
{
"name": "isbn",
"description": "International standard book number",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "service",
"description": "Either name or ONS authority code of the library service to search. Providing no value will search all library services.",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "A list of availability responses per library service"
}
}
}
}
},
"components": {},
"tags": []
}