create

suspend fun create(screenId: String, vendor: String, rule: String, type: SeverityType, description: String, source: Source, hash: String?, snapshots: List<String>?, screenshots: List<Bitmap>?): Result<ResultResource, Exception>

Create a new result for a screen.

Parameters

screenId

The screen ID (path parameter).

vendor

The slug associated with the VendorResource.

rule

The slug associated with the RuleResource.

type

The severity type, SeverityType.

description

The result description.

source

The source type, Source.

hash

The hash (optional).

snapshots

The list of snapshots (optional).

screenshots

The list of screenshots (optional).


suspend fun create(screenId: String, results: Results): Result<MessageResponse, Exception>

Create multiple new results for a screen.

Parameters

screenId

The screen ID (path parameter).

results

The results container with data, snapshots and screenshots