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

66 lines
1.5 KiB
YAML

{
"task_id": "task_create_api_auth_me",
"entity_id": "api_auth_me",
"generated_at": "2025-12-18T01:57:52.722632",
"workflow_version": "v001",
"target": {
"type": "api",
"definition": {
"id": "api_auth_me",
"path": "/api/auth/me",
"method": "GET",
"description": "Get current authenticated user",
"file_path": "app/api/auth/me/route.ts",
"status": "PENDING",
"auth_required": true,
"responses": [
{
"status": 200,
"description": "Success",
"schema": {
"id": "string",
"email": "string",
"name": "string",
"created_at": "string (ISO date)"
}
},
{
"status": 401,
"description": "Error",
"schema": {
"error": "Unauthorized"
}
}
]
}
},
"related": {
"models": [],
"apis": [],
"components": []
},
"dependencies": {
"entity_ids": [],
"definitions": []
},
"files": {
"to_create": [
"app/api/auth/me/route.ts"
],
"reference": []
},
"acceptance": [
{
"criterion": "GET /api/auth/me returns success response",
"verification": "curl -X GET /api/auth/me"
},
{
"criterion": "Request validation implemented",
"verification": "Test with invalid data"
},
{
"criterion": "Error responses match contract",
"verification": "Test error scenarios"
}
]
}