Skip to content

back: userを取得するエンドポイントが欲しい #7

@sana-sagegami

Description

@sana-sagegami

背景

ユーザー登録の際、userを取得するエンドポイントが欲しい

ユーザー登録の時に、登録されてないユーザーなのに登録されていると表示される
GET /v1/user/{user_id}/balanceから常にsuccessが返ってきている
そもそもユーザーの存在確認にGET /v1/user/{user_id}/balanceを使うべきか

考えられる代替案

postしてみてコンフリクトのレスポンスがかえるかどうかでユーザーの存在を確認
→名前を入力してからじゃないと判断できない
GET /v1/user/{user_id}/balanceエンドポイントを叩いて404がかえるか確認
→404が返ってこない

Image

→残高の計算に時間がかかるのでは

提案

userのpost, patchがあるのでgetがあるほうがいいのでは → GET /v1/user/{user_id} 実装してほしい
Image

期待する挙動

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestquestionFurther information is requested

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions