PavlovTV API (0.1.0)

Download OpenAPI specification:Download

API Specifications for the local webserver that accompanies PavlovTV

GET

Check the status of the currently loaded match

Returns information such as match time, teams if applicable, etc.

Responses

Response samples

Content type
application/json
{}

Get the current killfeed

Returns all killfeed events with weapon, players, and headshot

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get all match events

Returns all match events that occurred in the match

Responses

Response samples

Content type
application/json
{
  • "MatchTime": 137.369873046875,
  • "TotalTime": 383.4320068359375,
  • "Events": [
    ]
}

Get path info for camera

Returns path info in the form of an array of positions with times

path Parameters
camId
required
integer <int32>

ID of camera to return

Responses

Response samples

Content type
application/json
{
  • "MapName": "Stockpile",
  • "MapId": "UGC4397184",
  • "PathNumber": 0,
  • "Points": [
    ]
}

Returns if the player is currently paused

Returns if the player is currently paused

Responses

Response samples

Content type
application/json
{
  • "Paused": true
}

Returns current match time

Returns current match time

Responses

Response samples

Content type
application/json
{
  • "MatchTime": 743.8695068359375
}

Gets a list of available replays

Returns a list of available replays along with some basic info

Responses

Response samples

Content type
application/json
{
  • "Replays": [
    ]
}

Gets position data for all players

Returns position data including look direction, and bomb position if applicable

Responses

Response samples

Content type
application/json
{
  • "Players": [
    ],
  • "CameraX": 9170.89565213566,
  • "CameraY": 1080.3925747653223,
  • "CameraZ": 3920.31887346049,
  • "CameraYaw": -34.82500100135806,
  • "BombX": 9170.89565213566,
  • "BombY": 1080.3925747653223,
  • "BombZ": 3920.31887346049,
  • "BombState": 0
}

POST

Get path info for camera

Sets path info for the specified camera

path Parameters
camId
required
integer <int32>

ID of camera to return

Request Body schema: application/json

Data to overwrite a camera path with

MapName
string
MapId
string
PathNumber
integer <int32>
Array of objects (CameraPathPoint)

Responses

Request samples

Content type
application/json
{
  • "MapName": "Stockpile",
  • "MapId": "UGC4397184",
  • "PathNumber": 0,
  • "Points": [
    ]
}

Sets the pause state of the player

Sets the pause state of the player

Request Body schema: application/json

Whether to pause player or not

Paused
boolean

Responses

Request samples

Content type
application/json
{
  • "Paused": true
}

Response samples

Content type
application/json
{
  • "Successful": true,
  • "Reason": "string"
}

Sets the match time in the player

Sets the match time in the player

Request Body schema: application/json

Time to set match to

MatchTime
number <double>

Responses

Request samples

Content type
application/json
{
  • "MatchTime": 743.8695068359375
}

Response samples

Content type
application/json
{
  • "Successful": true,
  • "Reason": "string"
}

Loads a replay in the player

Loads the replay corresponding to the id provided

Request Body schema: application/json

Time to set match to

Id
string

Responses

Request samples

Content type
application/json
{
  • "Id": "string"
}

Response samples

Content type
application/json
{
  • "Successful": true,
  • "Reason": "string"
}