Last active
August 17, 2017 07:38
-
-
Save kiuchikeisuke/7b7f38867231c748c81bc8cb377a27ec to your computer and use it in GitHub Desktop.
たんまつ管理さんのAPI設計
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: '2.0' | |
info: | |
version: 1.0.0 | |
title: 端末管理さんAPI | |
schemes: | |
- https | |
paths: | |
/exec: | |
post: | |
summary: update | |
description: update | |
operationId: update | |
consumes: | |
- application/json | |
produces: | |
- application/json | |
parameters: | |
- in: body | |
name: body | |
required: true | |
schema: | |
$ref: '#/definitions/DeviceEntity' | |
responses: | |
'200': | |
description: result message | |
schema: | |
$ref: '#/definitions/MessageEntity' | |
get: | |
summary: getList | |
operationId: getList | |
produces: | |
- application/json | |
responses: | |
'200': | |
description: result list | |
schema: | |
type: array | |
items: | |
$ref: '#/definitions/DeviceEntity' | |
definitions: | |
MessageEntity: | |
type: object | |
properties: | |
message: | |
type: string | |
DeviceEntity: | |
type: object | |
properties: | |
userName: | |
type: string | |
mailAddress: | |
type: string | |
deviceName: | |
type: string | |
deviceId: | |
type: string | |
returnDate: | |
type: string | |
format: date | |
status: | |
type: string | |
enum: | |
- using | |
- free |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment