diff --git a/groupAPI.yaml b/groupAPI.yaml index 719c14b..6ab41e4 100644 --- a/groupAPI.yaml +++ b/groupAPI.yaml @@ -185,6 +185,46 @@ description: "成功時のレスポンス" schema: $ref: "#/definitions/requestInfo" + put: + summary: "リクエストの変更" + description: "指定したグループにリクエスト変更" + consumes: + - "multipart/form-data" + parameters: + - name: "groupId" + in: "path" + description: "リクエスト変更先グループのID" + required: true + type: "integer" + format: "int64" + - name: "uId" + in: "formData" + description: "発行者ID" + required: true + type: "integer" + format: "int64" + - name: "product" + in: "formData" + description: "商品名" + required: true + type: "string" + - name: "deadline" + in: "formData" + description: "期限(日にち)" + required: false + type: "string" + format: "date" + - name: "location" + in: "formData" + description: "場所の業種コード" + required: false + type: "integer" + format: "int64" + responses: + 200: + description: "成功時のレスポンス" + schema: + $ref: "#/definitions/requestInfo" /cosmos/groups/{groupId}/requests/{requestId}: get: summary: "リクエスト情報の詳細を取得" @@ -207,6 +247,27 @@ description: "成功時のレスポンス" schema: $ref: "#/definitions/requestDetail" + delete: + summary: "リクエストの削除" + description: "指定したグループの指定したリクエストを削除" + parameters: + - name: "groupId" + in: "path" + description: "(指定したい)グループのID" + required: true + type: "integer" + format: "int64" + - name: "requestId" + in: "path" + description: "削除したいリクエストのID" + required: true + type: "integer" + format: "int64" + responses: + 200: + description: "成功時のレスポンス" + schema: + $ref: "#/definitions/delete" definitions: groupInfo: