diff --git a/groupAPI.yaml b/groupAPI.yaml index 5da21f2..719c14b 100644 --- a/groupAPI.yaml +++ b/groupAPI.yaml @@ -106,6 +106,108 @@ description: "成功時のレスポンス" schema: $ref: "#/definitions/membersInfo" + delete: + summary: "グループからメンバーを削除" + description: "指定したグループから指定したメンバーを削除" + consumes: + - "multipart/form-data" + parameters: + - name: "groupId" + in: "path" + description: "取得したいグループのID" + required: true + type: "integer" + format: "int64" + - name: "uId" + in: "formData" + description: "削除したいメンバーのuId" + required: true + type: "integer" + format: "int64" + responses: + 200: + description: "成功時のレスポンス" + schema: + $ref: "#/definitions/membersInfo" + /cosmos/groups/{groupId}/requests: + get: + summary: "リクエスト情報の取得" + description: "指定したグループのリクエストの情報を取得" + parameters: + - name: "groupId" + in: "path" + description: "取得したいグループのID" + required: true + type: "integer" + format: "int64" + responses: + 200: + description: "成功時のレスポンス" + schema: + $ref: "#/definitions/requestsInfo" + post: + 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: "リクエスト情報の詳細を取得" + 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/requestDetail" + definitions: groupInfo: type: "object" @@ -149,6 +251,35 @@ requests: type: "object" example: [] + requestInfo: + type: "object" + properties: + requests: + type: "object" + example: {"rId":"123456789","uri":"http://123456789.com"} + requestsInfo: + type: "object" + properties: + requests: + type: "object" + example: [{"rId":"123456789","uri":"http://123456789.com"},{"rId":"987654321","uri":"http://987654321.com"}] + requestDetail: + type: "object" + properties: + request: + type: "object" + example: { + "rId":"123456789", + "date":"2019/04/16/15:00:00", + "issuer":{ + "userId":"123456789", + "URI":"https://123456789.com" + }, + "product":"Object1", + "deadline":"2019/04/16", + "location":"YOLPのID", + "done":false + } delete: type: "object" properties: