Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
"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": "",
"email": ""
"license": {
"name": "Apache 2.0",
"url": ""
"basePath": "/swagger-generated-bookstore",
"tags": [{
"name": "Bookstore Swagger-generated API",
"description": "WebSphere Liberty apiDiscovery example"
"schemes": ["https",
"externalDocs": {
"description": "Developing a Swagger-enabled REST API using WebSphere Developer Tools",
"url": ""
"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