openapiを生成する

This commit is contained in:
iwata 2023-05-11 13:41:40 +09:00
parent 12cd9c5a03
commit 95017df699

View File

@ -1218,6 +1218,71 @@
} }
] ]
} }
},
"/licenses/orders": {
"post": {
"operationId": "signup",
"summary": "",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateOrdersRequest"
}
}
}
},
"responses": {
"200": {
"description": "成功時のレスポンス",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateOrdersResponse"
}
}
}
},
"400": {
"description": "同一PONumberの注文がすでに存在する場合など",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "認証エラー",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "想定外のサーバーエラー",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
},
"tags": ["licenses"],
"security": [
{
"bearer": []
}
]
}
} }
}, },
"info": { "info": {
@ -1867,6 +1932,22 @@
"RegisterResponse": { "RegisterResponse": {
"type": "object", "type": "object",
"properties": {} "properties": {}
},
"CreateOrdersRequest": {
"type": "object",
"properties": {
"poNumber": {
"type": "string"
},
"orderCount": {
"type": "number"
}
},
"required": ["poNumber", "orderCount"]
},
"CreateOrdersResponse": {
"type": "object",
"properties": {}
} }
} }
} }