Skip to content

feat: implement Presentation layer for favorite heritages list API / お気に入り一覧APIのPresentation層実装 #568

Description

@zigzagdev

Parent Issue / 親Issue

#565

Motivation / 目的

Implement the Controller and route for listing favorite heritages, as part of #565.

お気に入り一覧API(#565)のPresentation層として、Controllerとエンドポイントを実装します。

What to do / 実施内容

Routes

  • GET /api/v1/favorites

auth:sanctum ミドルウェア必須。ユーザーIDは認証済みユーザーから取得する(POST /api/v1/favorites と同じパターン)。

Tests / テスト

結合テスト

  • test_getFavorites_returns_200_with_paginated_list
  • test_getFavorites_returns_200_with_empty_list_when_none
  • test_getFavorites_returns_401_when_unauthenticated

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions