Slide 19
Slide 19 text
©2019 Wantedly, Inc.
{
"swagger": “2.0",
…,
"paths": {
"/api/books/{id}": {
"get": {
"operationId": "GetBook",
"responses": {
"200": {
"description": …
"schema": {
"$ref": "#/definitions/booksBook"
}
}
},
“parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string",
"format": "int64"
}
],
"tags": …
}
}
},
"definitions": {
"booksBook": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "int64"
},
"title": {
"type": "string"
}
}
}
}
}