Skip to content

feat: implement Presentation layer for User Update API / ユーザー更新APIのPresentation層実装 #503

Description

@zigzagdev

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 / タスク

  • Add updateUser action to UserController
  • Register route in api.php
  • Write unit tests for Controller layer to meet Codecov patch coverage target

Parent issue / 親Issue

#500

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions