basePath: /v1definitions: v1.Book: properties: author: type: string id: type: integer title: type: string year: type: integer type: objectinfo: contact: email: support@swagger.io name: API Support url: http://www.swagger.io/support description: This is a sample server. license: name: Apache 2.0 url: http://www.apache.org/licenses/LICENSE-2.0.html termsOfService: http://swagger.io/terms/ title: Swagger Example API version: "1.0"paths: /books: get: consumes: - application/json description: get string by ID produces: - application/json responses: "200": description: ok schema: items: $ref: '#/definitions/v1.Book' type: array summary: Get a list of books in the the storeswagger: "2.0"
basePath: /v1
definitions:
v1.Book:
properties:
author:
type: string
id:
type: integer
title:
type: string
year:
type: integer
type: object
info:
contact:
email: support@swagger.io
name: API Support
url: http://www.swagger.io/support
description: This is a sample server.
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
termsOfService: http://swagger.io/terms/
title: Swagger Example API
version: "1.0"
paths:
/books:
get:
consumes:
- application/json
description: get string by ID
produces:
- application/json
responses:
"200":
description: ok
schema:
items:
$ref: '#/definitions/v1.Book'
type: array
summary: Get a list of books in the the store
swagger: "2.0"