Skip to content

feat(api): ユーザーメニュー向け API を追加 (following/update, update-memo, antenna show/update)#15

Merged
hitalin merged 1 commit into
mainfrom
feat/user-menu-apis
Jun 6, 2026
Merged

feat(api): ユーザーメニュー向け API を追加 (following/update, update-memo, antenna show/update)#15
hitalin merged 1 commit into
mainfrom
feat/user-menu-apis

Conversation

@hitalin

@hitalin hitalin commented Jun 6, 2026

Copy link
Copy Markdown
Owner

概要

NoteDeck Issue #458 のユーザープロフィール「…」メニュー拡充に必要な typed クライアントメソッドを追加する。

追加 API

メソッド エンドポイント 用途
update_following following/update notify / withReplies オプション付きフォロー更新
update_user_memo users/update-memo ユーザーへの自分用メモ
get_antenna antennas/show 単一アンテナ設定取得
update_antenna antennas/update アンテナ設定更新 (full entity 往復)
search_notes (拡張) notes/search SearchOptions.user_id で userId 絞り込み

型変更

  • Antenna を full entity (src / users / keywords / notify 等) に拡張。antennas/list は元々全フィールドを返すため list 消費側も恩恵。
  • NormalizedUserDetail / RawUserDetailmemo / notify / with_replies を追加。

テスト

wiremock テスト 7 件追加 (リクエストボディ検証含む)。cargo test --features specta で 151 tests green。

🤖 Generated with Claude Code

… show/update)

NoteDeck Issue #458 のユーザープロフィール「…」メニュー拡充に必要な
typed クライアントメソッドを追加。

- update_following: notify / withReplies オプション付きフォロー更新
- update_user_memo: ユーザーへの自分用メモ (users/update-memo)
- get_antenna / update_antenna: antennas/show + update (full entity 往復)
- search_notes: SearchOptions に user_id を追加し notes/search を userId で絞れるように
- Antenna 型を full entity (src/users/keywords/notify 等) に拡張
- NormalizedUserDetail / RawUserDetail に memo / notify / withReplies を追加

wiremock テスト 7 件追加。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@hitalin hitalin self-assigned this Jun 6, 2026
@hitalin hitalin merged commit c3f13d8 into main Jun 6, 2026
1 check failed
hitalin added a commit to hitalin/notedeck that referenced this pull request Jun 6, 2026
hitalin/notecli#15 が main にマージされたため、feature ブランチの
commit から main HEAD (c3f13d8) に rev を更新する。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant