api-debug-env / tasks /easy.py
PROTHAM
Fix final phase 1 and phase 2 inference and scoring issues
4423d13
Raw
History Blame Contribute Delete
1.79 kB
EASY_TASKS = [
{
"id": "easy_auth",
"description": "Access the protected resource at GET /mock_api/users to get a 200 OK. The current request is failing because the Authorization header is missing. Add 'Authorization: Bearer {demo_token}' to the headers.",
"broken_request": {
"method": "GET",
"url": "/mock_api/users",
"headers": {},
"body": None,
"query_params": {},
},
"expected_status": 200,
"expected_schema": {"users": []},
"max_steps": 10,
},
{
"id": "easy_content_type",
"description": "Create an item via POST /mock_api/items to get a 200 OK. The current request has the wrong Content-Type and is missing a body. Fix: set Content-Type to 'application/json' and add a JSON body with field 'name' set to any string (e.g. 'test_item').",
"broken_request": {
"method": "POST",
"url": "/mock_api/items",
"headers": {"Content-Type": "text/plain"},
"body": None,
"query_params": {},
},
"expected_status": 200,
"expected_schema": {"item_id": "", "name": "", "created": True},
"max_steps": 10,
},
{
"id": "easy_query_param",
"description": "Search for 'python' via GET /mock_api/search. The current request is missing the required 'q' query parameter. Add query_params: {\"q\": \"python\"} to fix it.",
"broken_request": {
"method": "GET",
"url": "/mock_api/search",
"headers": {},
"body": None,
"query_params": {},
},
"expected_status": 200,
"expected_schema": {"results": [], "total": 0},
"max_steps": 10,
},
]