A case as this run shows it
GET
/v1/runs/{id}/cases/{caseId}/content
const url = 'https://beta-api.plune.ai/v1/runs/example/cases/example/content';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://beta-api.plune.ai/v1/runs/example/cases/example/content \ --header 'Authorization: Bearer <token>'Plune #1267. While the run holds no result of the case, the case as it is now (frozen: false). From the first result on, the content the case had at the caseVersion of that result (frozen: true): a later edit or revert of the case, its move to the Bin and its restore leave it as it was, and currentVersion above version says the case has moved on. A case in the Bin shows the same way. snapshot is null only when the version tested was never kept (a result from before revisions, of a case edited since). 404: not your run, or it does not hold the case.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
caseId
required
string
Responses
Section titled “ Responses ”The case in the run
Media type application/json
object
testCaseId
required
string
frozen
required
boolean
version
required
integer
currentVersion
required
integer
inBin
required
boolean
snapshot
required
Title, description, precondition, examples and body, as in a revision.
object
Example generated
{ "testCaseId": "example", "frozen": true, "version": 1, "currentVersion": 1, "inBin": true, "snapshot": {}}No / invalid token or session
Not found or not yours
Media type application/json
object
error
required
string
Example generated
{ "error": "example"}