Spaces:
Running
Running
PROTHAM
Add Expert tier tasks to evaluate multi-step UUID stateful tracking and OpenAPI discovery
babab16 Download tasks/easy.py from ProthamD/api-debug-env: direct link, hf CLI and curl.
- Browser
- Download file 1.43 kB
-
https://huggingface.co/spaces/ProthamD/api-debug-env/resolve/4898dbf072ed5b8ea46fdc75291de2169497b4e6/tasks/easy.py
- Command line
-
hf download hf://spaces/ProthamD/api-debug-env@4898dbf072ed5b8ea46fdc75291de2169497b4e6/tasks/easy.py
-
curl -L -o easy.py https://huggingface.co/spaces/ProthamD/api-debug-env/resolve/4898dbf072ed5b8ea46fdc75291de2169497b4e6/tasks/easy.py
1.43 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.", | |
| "broken_request": { | |
| "method": "GET", | |
| "url": "/mock_api/users", | |
| "headers": {}, | |
| "body": None, | |
| "query_params": {}, | |
| }, | |
| "expected_status": 200, | |
| "expected_schema": {"users": []}, | |
| }, | |
| { | |
| "id": "easy_content_type", | |
| "description": "Create an item with name 'test_item' via POST /mock_api/items to get a 200 OK. The current request payload is rejected by the server.", | |
| "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}, | |
| }, | |
| { | |
| "id": "easy_query_param", | |
| "description": "Search for 'python' via GET /mock_api/search. The current request is missing required parameters.", | |
| "broken_request": { | |
| "method": "GET", | |
| "url": "/mock_api/search", | |
| "headers": {}, | |
| "body": None, | |
| "query_params": {}, | |
| }, | |
| "expected_status": 200, | |
| "expected_schema": {"results": [], "total": 0}, | |
| }, | |
| ] | |