メソッド:GET

エンドポイント: /api/works/list

📩 リクエスト項目

パラメータ名 必須 説明
user_id string 対象ユーザーのID(Google sub)をクエリで渡す

例:

GET /api/works/list?user_id=abc123

📤 レスポンス項目(配列形式)

項目名 必須 説明
id string Work の UUID
title string プロジェクト名
description string 説明文
tech_stack string 技術スタック
screenshot_url string スクリーンショットURL
site_url string 公開サイトURL
github_url string GitHubリポジトリURL
released_on date サイト公開日
is_published boolean 公開フラグ
created_at datetime 作成日時
updated_at datetime 更新日時

✅ 成功時レスポンス(例)

[ { "id": "uuid-123", "title": "My Portfolio", "description": "説明文", "tech_stack": "Next.js,TypeScript", "screenshot_url": "https://s3.amazonaws.com/bucket/image.png", "site_url": "https://mypage.com", "github_url": "https://github.com/xxx/repo", "released_on": "2024-01-01", "is_published": true, "created_at": "2024-01-01T00:00:00Z", "updated_at": "2024-01-01T00:00:00Z" } ]

❌ エラー時レスポンス(例)

{ "status": "error", "error": { "code": "INVALID_PARAM", "message": "Missing required parameters: user_id" } }