chore: updated schema to 5.1.0
This commit is contained in:
parent
06c766b7ec
commit
7ae14a56ed
3 changed files with 251 additions and 4 deletions
|
|
@ -3,7 +3,7 @@
|
|||
"info": {
|
||||
"title": "Torn API",
|
||||
"description": "\n * The development of Torn's API v2 is still ongoing.\n * If selections remain unaltered, they will default to the API v1 version.\n * Unlike API v1, API v2 accepts both selections and IDs as path and query parameters.\n * If any discrepancies or errors are found, please submit a [bug report](https://www.torn.com/forums.php#/p=forums&f=19&b=0&a=0) on the Torn Forums.\n * In case you're using bots to check for changes on openapi.json file, make sure to specificy a custom user-agent header - CloudFlare sometimes prevents requests from default user-agents.",
|
||||
"version": "5.0.2"
|
||||
"version": "5.1.0"
|
||||
},
|
||||
"servers": [
|
||||
{
|
||||
|
|
@ -8079,6 +8079,99 @@
|
|||
"x-stability": "Stable"
|
||||
}
|
||||
},
|
||||
"/torn/elimination": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Torn"
|
||||
],
|
||||
"summary": "Get current standings for all elimination teams",
|
||||
"description": "Requires public key.",
|
||||
"operationId": "a6ce3192de2a723c7eedef7951eeb258",
|
||||
"parameters": [
|
||||
{
|
||||
"$ref": "#/components/parameters/ApiTimestamp"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/parameters/ApiComment"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/parameters/ApiKeyPublic"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Successful operation",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/TornEliminationTeamsResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"api_key": []
|
||||
}
|
||||
],
|
||||
"x-stability": "Unstable"
|
||||
}
|
||||
},
|
||||
"/torn/{id}/eliminationteam": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Torn"
|
||||
],
|
||||
"summary": "Get players in a specific elimination team",
|
||||
"description": "Requires public key.",
|
||||
"operationId": "ccc5b888a920b5c707d97c29b38d6e43",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"description": "Elimination team id",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/EliminationTeamId"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/parameters/ApiLimit100"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/parameters/ApiOffsetNoDefault"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/parameters/ApiTimestamp"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/parameters/ApiComment"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/parameters/ApiKeyPublic"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Successful operation",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/TornEliminationTeamPlayersResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"api_key": []
|
||||
}
|
||||
],
|
||||
"x-stability": "Unstable"
|
||||
}
|
||||
},
|
||||
"/torn/factionhof": {
|
||||
"get": {
|
||||
"tags": [
|
||||
|
|
@ -9116,6 +9209,9 @@
|
|||
{
|
||||
"$ref": "#/components/schemas/TornCrimeId"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/EliminationTeamId"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/ItemUid"
|
||||
},
|
||||
|
|
@ -9253,6 +9349,12 @@
|
|||
{
|
||||
"$ref": "#/components/schemas/TornItemDetailsResponse"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/TornEliminationTeamsResponse"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/TornEliminationTeamPlayersResponse"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/TornMedalsResponse"
|
||||
},
|
||||
|
|
@ -14330,6 +14432,10 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"EliminationTeamId": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"UserMessageId": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
|
|
@ -16759,7 +16865,8 @@
|
|||
"required": [
|
||||
"name",
|
||||
"score",
|
||||
"total"
|
||||
"attacks",
|
||||
"team"
|
||||
],
|
||||
"properties": {
|
||||
"name": {
|
||||
|
|
@ -28003,6 +28110,144 @@
|
|||
},
|
||||
"type": "object"
|
||||
},
|
||||
"TornEliminationTeam": {
|
||||
"required": [
|
||||
"id",
|
||||
"name",
|
||||
"participants",
|
||||
"position",
|
||||
"score",
|
||||
"lives",
|
||||
"wins",
|
||||
"losses",
|
||||
"eliminated",
|
||||
"eliminated_timestamp",
|
||||
"leaders"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
"$ref": "#/components/schemas/EliminationTeamId"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"participants": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"position": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"score": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"lives": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"wins": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"losses": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"eliminated": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"eliminated_timestamp": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"leaders": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/BasicUser"
|
||||
}
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"TornEliminationTeamsResponse": {
|
||||
"required": [
|
||||
"elimination"
|
||||
],
|
||||
"properties": {
|
||||
"elimination": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/TornEliminationTeam"
|
||||
}
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"TornEliminationTeamPlayer": {
|
||||
"required": [
|
||||
"id",
|
||||
"name",
|
||||
"level",
|
||||
"last_action",
|
||||
"status",
|
||||
"attacks",
|
||||
"score"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
"$ref": "#/components/schemas/UserId"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"level": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"last_action": {
|
||||
"$ref": "#/components/schemas/UserLastAction"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/components/schemas/UserStatus"
|
||||
},
|
||||
"attacks": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"score": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"TornEliminationTeamPlayersResponse": {
|
||||
"required": [
|
||||
"eliminationteam",
|
||||
"_metadata"
|
||||
],
|
||||
"properties": {
|
||||
"eliminationteam": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/TornEliminationTeamPlayer"
|
||||
}
|
||||
},
|
||||
"_metadata": {
|
||||
"$ref": "#/components/schemas/RequestMetadataWithLinks"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"TornItemDetails": {
|
||||
"allOf": [
|
||||
{
|
||||
|
|
@ -29878,6 +30123,8 @@
|
|||
"calendar",
|
||||
"crimes",
|
||||
"education",
|
||||
"elimination",
|
||||
"eliminationteam",
|
||||
"factionhof",
|
||||
"factiontree",
|
||||
"hof",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue