curl --request GET \
--url https://api.example.com/api/projects{
"id": 123,
"name": "<string>",
"color": "<string>",
"userId": 123
}Retrieve all projects for the authenticated user
curl --request GET \
--url https://api.example.com/api/projects{
"id": 123,
"name": "<string>",
"color": "<string>",
"userId": 123
}curl -X GET https://api.example.com/api/projects \
-H "Authorization: Bearer YOUR_TOKEN_HERE"
[
{
"id": 1,
"name": "Website Redesign",
"color": "#3b82f6",
"userId": 123
},
{
"id": 2,
"name": "Mobile App",
"color": "#10b981",
"userId": 123
}
]
{
"error": "Unauthorized",
"message": "Invalid or missing authentication token"
}