Skip to content

Calculate game performance

POST
/v1/games/performance
curl --request POST \
--url https://example.com/komplettpc/v1/games/performance \
--header 'Content-Type: application/json' \
--data '{ "productIds": [ "example" ], "gameIds": [ "example" ] }'

Calculates how the given products perform against the given games, returning one verdict per requested game id.

object
productIds
required
Array<string>
gameIds
required
Array<string>
Examplegenerated
{
"productIds": [
"example"
],
"gameIds": [
"example"
]
}

OK

Media typeapplication/json
object
games
required
Array<object>
object
gameId
required
string
title
required
null | string
status
required
Allowed values: NotKnown RequirementsNotMet MinimumRequirementsMet RecommendedRequirementsMet
coverImage
required
null | string
thumbnailImage
required
null | string
Example
{
"games": [
{
"status": "NotKnown"
}
]
}

Bad Request

Media typeapplication/json
object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string
errors
required
Array<object>
object
fieldName
required
string
message
required
string
code
required
string
traceId
required
string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"errors": [
{
"fieldName": "example",
"message": "example"
}
],
"code": "example",
"traceId": "example"
}

Unauthorized

Media typeapplication/json
object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string
code
required
string
traceId
required
string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"code": "example",
"traceId": "example"
}

Forbidden

Media typeapplication/json
object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string
code
required
string
traceId
required
string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"code": "example",
"traceId": "example"
}

Internal Server Error

Media typeapplication/json
object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string
code
required
string
traceId
required
string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"code": "example",
"traceId": "example"
}