From 95017df699d24471d5c3a0594f2a47599c9e2134 Mon Sep 17 00:00:00 2001 From: iwata Date: Thu, 11 May 2023 13:41:40 +0900 Subject: [PATCH] =?UTF-8?q?openapi=E3=82=92=E7=94=9F=E6=88=90=E3=81=99?= =?UTF-8?q?=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dictation_server/src/api/odms/openapi.json | 81 ++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/dictation_server/src/api/odms/openapi.json b/dictation_server/src/api/odms/openapi.json index 7331140..fc93bd5 100644 --- a/dictation_server/src/api/odms/openapi.json +++ b/dictation_server/src/api/odms/openapi.json @@ -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": { @@ -1867,6 +1932,22 @@ "RegisterResponse": { "type": "object", "properties": {} + }, + "CreateOrdersRequest": { + "type": "object", + "properties": { + "poNumber": { + "type": "string" + }, + "orderCount": { + "type": "number" + } + }, + "required": ["poNumber", "orderCount"] + }, + "CreateOrdersResponse": { + "type": "object", + "properties": {} } } }