project-standalo-todo-super/.workflow/versions/v001/contexts/api_users_points.yml

65 lines
1.5 KiB
YAML

{
"task_id": "task_create_api_users_points",
"entity_id": "api_users_points",
"generated_at": "2025-12-18T01:57:52.722710",
"workflow_version": "v001",
"target": {
"type": "api",
"definition": {
"id": "api_users_points",
"path": "/api/users/me/points",
"method": "GET",
"description": "Get user points balance and transaction history",
"file_path": "app/api/users/me/points/route.ts",
"status": "PENDING",
"auth_required": true,
"responses": [
{
"status": 200,
"description": "Success",
"schema": {
"balance": "integer",
"transactions": [
{
"id": "string",
"amount": "integer",
"type": "string",
"source": "string",
"created_at": "string (ISO date)"
}
]
}
}
]
}
},
"related": {
"models": [],
"apis": [],
"components": []
},
"dependencies": {
"entity_ids": [],
"definitions": []
},
"files": {
"to_create": [
"app/api/users/me/points/route.ts"
],
"reference": []
},
"acceptance": [
{
"criterion": "GET /api/users/me/points returns success response",
"verification": "curl -X GET /api/users/me/points"
},
{
"criterion": "Request validation implemented",
"verification": "Test with invalid data"
},
{
"criterion": "Error responses match contract",
"verification": "Test error scenarios"
}
]
}