Overview / 概要
Implement the Controller and route for the User Update API, as part of #500.
#500 の一環として、ユーザー更新APIのControllerとRouteを実装する。
Requirements / 要件
- Controller:
UserController::updateUser() with try/catch (same pattern as createUser)
- 200 on success, 500 on error with server-side Log
- Use
Request for the incoming request (no validation at this layer)
- ViewModel: Reuse existing
UserViewModel and UserViewModelFactory
- Route:
PATCH /api/v1/user/{id} (or PUT — to be decided)
Tasks / タスク
Parent issue / 親Issue
#500
Overview / 概要
Implement the Controller and route for the User Update API, as part of #500.
#500 の一環として、ユーザー更新APIのControllerとRouteを実装する。
Requirements / 要件
UserController::updateUser()with try/catch (same pattern ascreateUser)Requestfor the incoming request (no validation at this layer)UserViewModelandUserViewModelFactoryPATCH /api/v1/user/{id}(orPUT— to be decided)Tasks / タスク
updateUseraction toUserControllerapi.phpParent issue / 親Issue
#500