Create a gist now

Instantly share code, notes, and snippets.

{
"swagger": "2.0",
"info": {
"description": "Bookstore Swagger-generated API (WebSphere Liberty apiDiscovery example)",
"version": "V1.0.0",
"title": "Bookstore Swagger-generated API",
"termsOfService": "share and care",
"contact": {
"name": "Pavel",
"url": "https://psamolysov.blogspot.com",
"email": "xxx@gmail.com"
},
"license": {
"name": "Apache 2.0",
"url": "http://www.apache.org"
}
},
"basePath": "/swagger-generated-bookstore",
"tags": [{
"name": "Bookstore Swagger-generated API",
"description": "WebSphere Liberty apiDiscovery example"
}],
"schemes": ["https",
"http"],
"externalDocs": {
"description": "Developing a Swagger-enabled REST API using WebSphere Developer Tools",
"url": "https://tinyurl.com/swagger-wlp"
},
"paths": {
"/api/bookstore/{isbn}": {
"get": {
"tags": ["Bookstore Swagger-generated API"],
"summary": "Get a valid book definition",
"description": "Returns a valid book definition by isbn",
"operationId": "retrieveBook",
"produces": ["application/json"],
"parameters": [{
"name": "isbn",
"in": "path",
"description": "A book isbn",
"required": true,
"type": "string"
}],
"responses": {
"200": {
"description": "A valid book definition"
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment