Highlights

List highlights

Get a list of highlights.

GET /api/v1/results/{id}/tests/{seq}/highlights

Response 200 OK

{
    "timestamp": "2016-04-18T10:29:23.248104495-04:00",
    "data": [
        {
            "line": "4",
            "color": "yellow"
        },
        {
            "line": "14",
            "color": "blue"
        },
        {
            "line": "23",
            "color": "red"
        }
    ]
}

Get a highlight

Get a highlight.

GET /api/v1/results/{id}/tests/{seq}/highlights/{line}

Response 200 OK

{
    "timestamp": "2016-04-18T10:30:11.327055636-04:00",
    "data": {
        "id": "20160415113526",
        "seq": "1",
        "line": "23",
        "color": "red"
    }
}

Response 404 Not Found

{
    "error": "no such highlight"
}

Create or edit a highlight

Create or edit a highlight.

PATCH /api/v1/results/{id}/tests/{seq}/highlights/{line}

Example

PATCH /api/v1/results/20160415113526/tests/1/highlights/19/
{
    "color": "yellow"
}

Response 200 OK

{
    "timestamp": "2016-04-18T10:31:06.212574153-04:00",
    "data": {
        "id": "20160415113526",
        "seq": "1",
        "line": "19",
        "color": "yellow"
    }
}

Delete a highlight

Delete a highlight.

DELETE /api/v1/results/{id}/tests/{seq}/highlights/{line}

Response 204 No Content