feat: add include query param and sessions to unified /me endpoint

GET /v1/iam/users/me now supports ?include=hackathon,qr,mentor,sessions
to control which module profiles are returned. Omitting the param
returns all modules. Also added dimentorin sessions data.

Examples:
  /v1/iam/users/me                        → all modules
  /v1/iam/users/me?include=hackathon      → only hackathon profile
  /v1/iam/users/me?include=mentor,sessions → mentor + sessions only

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
maulanasdqn
2026-04-10 12:28:55 +07:00
co-authored by Claude Opus 4.6
parent a4bbc73c7e
commit 5667a0d608
3 changed files with 117 additions and 6 deletions
+1
View File
@@ -202,6 +202,7 @@ use utoipa::OpenApi;
imphnen_iam::users::infrastructure::http::dto::HackathonProfileDto,
imphnen_iam::users::infrastructure::http::dto::QrProfileDto,
imphnen_iam::users::infrastructure::http::dto::MentorProfileDto,
imphnen_iam::users::infrastructure::http::dto::SessionProfileDto,
GachaClaimDetailDto, GachaClaimCreateRequestDto,
GachaCreditDto, GachaCreditAddRequestDto,
GachaItemDto, GachaItemCreateRequestDto,