Skip to content

Commit

Permalink
add books and bibkeys examples to swagger (#8085)
Browse files Browse the repository at this point in the history
* add books and bibkeys examples

* add new line
  • Loading branch information
RayBB authored Jul 12, 2023
1 parent 45b5d4a commit 1092106
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions static/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,18 @@
"type": "string"
},
"name": "bibkeys",
"in": "query"
"in": "query",
"examples": {
"isbn": {
"value": "ISBN:0201558025"
},
"oclc": {
"value": "OCLC:263296519"
},
"multiple": {
"value": "ISBN:9781408113479,OCLC:420517"
}
}
},
{
"required": false,
Expand All @@ -73,15 +84,17 @@
"default": "json"
},
"name": "format",
"in": "query"
"in": "query",
"description": "Specifies the response format. Possible values are json and javascript. When not specified the format is javascript."
},
{
"required": false,
"schema": {
"title": "Callback"
},
"name": "callback",
"in": "query"
"in": "query",
"description": "The name of the JavaScript function to call with the result. This is considered only when the format is javascript."
},
{
"required": false,
Expand All @@ -91,7 +104,8 @@
"default": "viewapi"
},
"name": "jscmd",
"in": "query"
"in": "query",
"description": "Decides what information to provide for each matched bib_key. Possible values are viewapi and data. The default value is viewapi."
}
],
"responses": {
Expand Down Expand Up @@ -269,7 +283,8 @@
{
"required": true,
"schema": {
"title": "Olid"
"title": "Olid",
"example": "OL53924W"
},
"name": "olid",
"in": "path"
Expand Down

0 comments on commit 1092106

Please sign in to comment.