diff --git a/userAPI.yaml b/userAPI.yaml index aeeb21f..992757d 100644 --- a/userAPI.yaml +++ b/userAPI.yaml @@ -37,6 +37,11 @@ description: "アイコンイメージ" required: false type: "string" + - name: "token" + in: "formData" + description: "トークンの新規作成" + required: true + type: "string" responses: 201: description: "成功時のレスポンス" @@ -48,12 +53,19 @@ get: summary: "ユーザー情報を取得" description: "userIdを指定してユーザーの情報を取得します。" + consumes: + - "multipart/form-data" parameters: - name: "uId" in: "path" description: "検索したいユーザーID" required: true type: "string" + - name: "token" + in: "formData" + description: "端末が所持するトークン" + required: true + type: "string" responses: 200: description: "成功時のレスポンス" @@ -63,7 +75,7 @@ name: type: "string" example: "甲南 太郎" - icon-image: + icon-uri: type: "string" 400: description: "無効なユーザー名が指定されました。" @@ -129,7 +141,7 @@ description: "ユーザが見つかりませんでした。" /users/{uId}/login: - get: + put: summary: "ログイン" description: "" parameters: @@ -152,7 +164,7 @@ description: "ユーザIDもしくはパスワードが間違っています。" /users/{uId}/logout: - get: + put: summary: "ログアウト" description: "" consumes: @@ -185,8 +197,12 @@ type: "string" example: "甲南 太郎" uri: + type: "string" + example: "http://nitta-lab-www.is.konan-u.ac.jp/cosmos/users/{uId}" + token: + type: "string" + icon-uri: type: "string" - example: "http://12345.com" Token: type: "object"