v1

latestOpenAPI 3.1.02026-07-1320186461.3 KB

Get Test Case Collection By Identifier

Fetches dataset/test case collection by its ID or name.

Args: test_collection_identifier (Union[str, int]): ID or name of the test case collection/dataset.

get/api/parea/v1/collection/{test_collection_identifier}

Path parameters

string required
OR
integer required

Response

Successful Response

idinteger required

Unique identifier for the test case collection

namestring required

Name of the test case collection

column_namesstring[] required

Column names for the test case collection

created_atstring required

Timestamp when the test case collection was created

last_updated_atstring required

Timestamp when the test case collection was last updated

test_casesobject required

Dictionary mapping test case ID to test case

Example response

{
  "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
    }
  }
}