GET
/
api
/
parea
/
v1
/
collection
/
{test_collection_identifier}
p = Parea(api_key="PAREA_API_KEY")  # replace with your API key

test_collection = p.get_collection(test_collection_identifier="Math problems")
{
  "column_names": [
    "language",
    "framework"
  ],
  "created_at": "2021-06-01T00:00:00Z",
  "id": 5000,
  "last_updated_at": "2021-06-01T00:00:00Z",
  "name": "Hello World Programs",
  "test_cases": {
    "12345": {
      "id": 12345,
      "inputs": {
        "framework": "fastapi",
        "language": "python"
      },
      "tags": [
        "easy"
      ],
      "target": "a good program here",
      "test_case_collection_id": 5000
    }
  }
}
p = Parea(api_key="PAREA_API_KEY")  # replace with your API key

test_collection = p.get_collection(test_collection_identifier="Math problems")

Authorizations

x-user-id
string
header
required

Path Parameters

test_collection_identifier
required

Response

200
application/json
Successful Response
id
integer
required

Unique identifier for the test case collection

name
string
required

Name of the test case collection

column_names
string[]
required

Column names for the test case collection

created_at
string
required

Timestamp when the test case collection was created

last_updated_at
string
required

Timestamp when the test case collection was last updated

test_cases
object
required

Dictionary mapping test case ID to test case