This commit is contained in:
+40
-40
@@ -23,9 +23,9 @@ var doc = `{
|
||||
"host": "{{.Host}}",
|
||||
"basePath": "{{.BasePath}}",
|
||||
"paths": {
|
||||
"/api/v1/statistics/games/last-played": {
|
||||
"/api/v1/statistics/soundtracks/last-played": {
|
||||
"get": {
|
||||
"description": "Returns the most recently played games",
|
||||
"description": "Returns the most recently played soundtracks",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -35,7 +35,7 @@ var doc = `{
|
||||
"tags": [
|
||||
"statistics"
|
||||
],
|
||||
"summary": "Get last played games",
|
||||
"summary": "Get last played soundtracks",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
@@ -50,7 +50,7 @@ var doc = `{
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/backend.GameWithSongs"
|
||||
"$ref": "#/definitions/backend.SoundtrackWithSongs"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -75,9 +75,9 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/statistics/games/least-played": {
|
||||
"/api/v1/statistics/soundtracks/least-played": {
|
||||
"get": {
|
||||
"description": "Returns the top N least played games with their songs",
|
||||
"description": "Returns the top N least played soundtracks with their songs",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -87,7 +87,7 @@ var doc = `{
|
||||
"tags": [
|
||||
"statistics"
|
||||
],
|
||||
"summary": "Get least played games",
|
||||
"summary": "Get least played soundtracks",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
@@ -102,7 +102,7 @@ var doc = `{
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/backend.GameWithSongs"
|
||||
"$ref": "#/definitions/backend.SoundtrackWithSongs"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -127,9 +127,9 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/statistics/games/most-played": {
|
||||
"/api/v1/statistics/soundtracks/most-played": {
|
||||
"get": {
|
||||
"description": "Returns the top N most played games with their songs",
|
||||
"description": "Returns the top N most played soundtracks with their songs",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -139,7 +139,7 @@ var doc = `{
|
||||
"tags": [
|
||||
"statistics"
|
||||
],
|
||||
"summary": "Get most played games",
|
||||
"summary": "Get most played soundtracks",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
@@ -154,7 +154,7 @@ var doc = `{
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/backend.GameWithSongs"
|
||||
"$ref": "#/definitions/backend.SoundtrackWithSongs"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -179,9 +179,9 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/statistics/games/never-played": {
|
||||
"/api/v1/statistics/soundtracks/never-played": {
|
||||
"get": {
|
||||
"description": "Returns all games that have never been played (times_played = 0)",
|
||||
"description": "Returns all soundtracks that have never been played (times_played = 0)",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -191,14 +191,14 @@ var doc = `{
|
||||
"tags": [
|
||||
"statistics"
|
||||
],
|
||||
"summary": "Get never played games",
|
||||
"summary": "Get never played soundtracks",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/backend.GameWithSongs"
|
||||
"$ref": "#/definitions/backend.SoundtrackWithSongs"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -214,9 +214,9 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/statistics/games/oldest-played": {
|
||||
"/api/v1/statistics/soundtracks/oldest-played": {
|
||||
"get": {
|
||||
"description": "Returns the least recently played games (that have been played at least once)",
|
||||
"description": "Returns the least recently played soundtracks (that have been played at least once)",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -226,7 +226,7 @@ var doc = `{
|
||||
"tags": [
|
||||
"statistics"
|
||||
],
|
||||
"summary": "Get oldest played games",
|
||||
"summary": "Get oldest played soundtracks",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
@@ -241,7 +241,7 @@ var doc = `{
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/backend.GameWithSongs"
|
||||
"$ref": "#/definitions/backend.SoundtrackWithSongs"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -824,7 +824,7 @@ var doc = `{
|
||||
},
|
||||
"/music/all/order": {
|
||||
"get": {
|
||||
"description": "Returns a list of all games in order",
|
||||
"description": "Returns a list of all soundtracks in order",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -857,7 +857,7 @@ var doc = `{
|
||||
},
|
||||
"/music/all/random": {
|
||||
"get": {
|
||||
"description": "Returns a list of all games in random order",
|
||||
"description": "Returns a list of all soundtracks in random order",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -1197,7 +1197,7 @@ var doc = `{
|
||||
},
|
||||
"/sync": {
|
||||
"get": {
|
||||
"description": "Starts syncing games with only new changes",
|
||||
"description": "Starts syncing soundtracks with only new changes",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -1226,7 +1226,7 @@ var doc = `{
|
||||
},
|
||||
"/sync/full": {
|
||||
"get": {
|
||||
"description": "Starts a full sync of all games",
|
||||
"description": "Starts a full sync of all soundtracks",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -1236,7 +1236,7 @@ var doc = `{
|
||||
"tags": [
|
||||
"sync"
|
||||
],
|
||||
"summary": "Sync all games fully",
|
||||
"summary": "Sync all soundtracks fully",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Start syncing soundtracks full",
|
||||
@@ -1279,7 +1279,7 @@ var doc = `{
|
||||
},
|
||||
"/sync/reset": {
|
||||
"get": {
|
||||
"description": "Resets the games database by deleting all games and songs",
|
||||
"description": "Resets the soundtracks database by deleting all soundtracks and songs",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -1369,19 +1369,19 @@ var doc = `{
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"backend.GameWithSongs": {
|
||||
"backend.SoundtrackWithSongs": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"game_id": {
|
||||
"soundtrack_id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"game_last_played": {
|
||||
"soundtrack_last_played": {
|
||||
"type": "string"
|
||||
},
|
||||
"game_name": {
|
||||
"soundtrack_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"game_played": {
|
||||
"soundtrack_played": {
|
||||
"type": "integer"
|
||||
},
|
||||
"songs": {
|
||||
@@ -1398,10 +1398,10 @@ var doc = `{
|
||||
"file_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"game_id": {
|
||||
"soundtrack_id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"game_name": {
|
||||
"soundtrack_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"path": {
|
||||
@@ -1418,25 +1418,25 @@ var doc = `{
|
||||
"backend.StatisticsSummary": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"avg_game_plays": {
|
||||
"avg_soundtrack_plays": {
|
||||
"type": "number"
|
||||
},
|
||||
"max_game_plays": {
|
||||
"max_soundtrack_plays": {
|
||||
"type": "integer"
|
||||
},
|
||||
"min_game_plays": {
|
||||
"min_soundtrack_plays": {
|
||||
"type": "integer"
|
||||
},
|
||||
"never_played_games": {
|
||||
"never_played_soundtracks": {
|
||||
"type": "integer"
|
||||
},
|
||||
"played_games": {
|
||||
"played_soundtracks": {
|
||||
"type": "integer"
|
||||
},
|
||||
"total_game_plays": {
|
||||
"total_soundtrack_plays": {
|
||||
"type": "integer"
|
||||
},
|
||||
"total_games": {
|
||||
"total_soundtracks": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
|
||||
+42
-42
@@ -4,9 +4,9 @@
|
||||
"contact": {}
|
||||
},
|
||||
"paths": {
|
||||
"/api/v1/statistics/games/last-played": {
|
||||
"/api/v1/statistics/soundtracks/last-played": {
|
||||
"get": {
|
||||
"description": "Returns the most recently played games",
|
||||
"description": "Returns the most recently played soundtracks",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -16,7 +16,7 @@
|
||||
"tags": [
|
||||
"statistics"
|
||||
],
|
||||
"summary": "Get last played games",
|
||||
"summary": "Get last played soundtracks",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
@@ -31,7 +31,7 @@
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/backend.GameWithSongs"
|
||||
"$ref": "#/definitions/backend.SoundtrackWithSongs"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -56,9 +56,9 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/statistics/games/least-played": {
|
||||
"/api/v1/statistics/soundtracks/least-played": {
|
||||
"get": {
|
||||
"description": "Returns the top N least played games with their songs",
|
||||
"description": "Returns the top N least played soundtracks with their songs",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -68,7 +68,7 @@
|
||||
"tags": [
|
||||
"statistics"
|
||||
],
|
||||
"summary": "Get least played games",
|
||||
"summary": "Get least played soundtracks",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
@@ -83,7 +83,7 @@
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/backend.GameWithSongs"
|
||||
"$ref": "#/definitions/backend.SoundtrackWithSongs"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -108,9 +108,9 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/statistics/games/most-played": {
|
||||
"/api/v1/statistics/soundtracks/most-played": {
|
||||
"get": {
|
||||
"description": "Returns the top N most played games with their songs",
|
||||
"description": "Returns the top N most played soundtracks with their songs",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -120,7 +120,7 @@
|
||||
"tags": [
|
||||
"statistics"
|
||||
],
|
||||
"summary": "Get most played games",
|
||||
"summary": "Get most played soundtracks",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
@@ -135,7 +135,7 @@
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/backend.GameWithSongs"
|
||||
"$ref": "#/definitions/backend.SoundtrackWithSongs"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -160,9 +160,9 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/statistics/games/never-played": {
|
||||
"/api/v1/statistics/soundtracks/never-played": {
|
||||
"get": {
|
||||
"description": "Returns all games that have never been played (times_played = 0)",
|
||||
"description": "Returns all soundtracks that have never been played (times_played = 0)",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -172,14 +172,14 @@
|
||||
"tags": [
|
||||
"statistics"
|
||||
],
|
||||
"summary": "Get never played games",
|
||||
"summary": "Get never played soundtracks",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/backend.GameWithSongs"
|
||||
"$ref": "#/definitions/backend.SoundtrackWithSongs"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -195,9 +195,9 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/statistics/games/oldest-played": {
|
||||
"/api/v1/statistics/soundtracks/oldest-played": {
|
||||
"get": {
|
||||
"description": "Returns the least recently played games (that have been played at least once)",
|
||||
"description": "Returns the least recently played soundtracks (that have been played at least once)",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -207,7 +207,7 @@
|
||||
"tags": [
|
||||
"statistics"
|
||||
],
|
||||
"summary": "Get oldest played games",
|
||||
"summary": "Get oldest played soundtracks",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
@@ -222,7 +222,7 @@
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/backend.GameWithSongs"
|
||||
"$ref": "#/definitions/backend.SoundtrackWithSongs"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -249,7 +249,7 @@
|
||||
},
|
||||
"/api/v1/statistics/songs/least-played": {
|
||||
"get": {
|
||||
"description": "Returns the top N least played songs with their game info",
|
||||
"description": "Returns the top N least played songs with their soundtrack info",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -301,7 +301,7 @@
|
||||
},
|
||||
"/api/v1/statistics/songs/most-played": {
|
||||
"get": {
|
||||
"description": "Returns the top N most played songs with their game info",
|
||||
"description": "Returns the top N most played songs with their soundtrack info",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -805,7 +805,7 @@
|
||||
},
|
||||
"/music/all/order": {
|
||||
"get": {
|
||||
"description": "Returns a list of all games in order",
|
||||
"description": "Returns a list of all soundtracks in order",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -838,7 +838,7 @@
|
||||
},
|
||||
"/music/all/random": {
|
||||
"get": {
|
||||
"description": "Returns a list of all games in random order",
|
||||
"description": "Returns a list of all soundtracks in random order",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -1178,7 +1178,7 @@
|
||||
},
|
||||
"/sync": {
|
||||
"get": {
|
||||
"description": "Starts syncing games with only new changes",
|
||||
"description": "Starts syncing soundtracks with only new changes",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -1207,7 +1207,7 @@
|
||||
},
|
||||
"/sync/full": {
|
||||
"get": {
|
||||
"description": "Starts a full sync of all games",
|
||||
"description": "Starts a full sync of all soundtracks",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -1217,7 +1217,7 @@
|
||||
"tags": [
|
||||
"sync"
|
||||
],
|
||||
"summary": "Sync all games fully",
|
||||
"summary": "Sync all soundtracks fully",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Start syncing soundtracks full",
|
||||
@@ -1260,7 +1260,7 @@
|
||||
},
|
||||
"/sync/reset": {
|
||||
"get": {
|
||||
"description": "Resets the games database by deleting all games and songs",
|
||||
"description": "Resets the soundtracks database by deleting all soundtracks and songs",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -1350,19 +1350,19 @@
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"backend.GameWithSongs": {
|
||||
"backend.SoundtrackWithSongs": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"game_id": {
|
||||
"soundtrack_id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"game_last_played": {
|
||||
"soundtrack_last_played": {
|
||||
"type": "string"
|
||||
},
|
||||
"game_name": {
|
||||
"soundtrack_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"game_played": {
|
||||
"soundtrack_played": {
|
||||
"type": "integer"
|
||||
},
|
||||
"songs": {
|
||||
@@ -1379,10 +1379,10 @@
|
||||
"file_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"game_id": {
|
||||
"soundtrack_id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"game_name": {
|
||||
"soundtrack_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"path": {
|
||||
@@ -1399,25 +1399,25 @@
|
||||
"backend.StatisticsSummary": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"avg_game_plays": {
|
||||
"avg_soundtrack_plays": {
|
||||
"type": "number"
|
||||
},
|
||||
"max_game_plays": {
|
||||
"max_soundtrack_plays": {
|
||||
"type": "integer"
|
||||
},
|
||||
"min_game_plays": {
|
||||
"min_soundtrack_plays": {
|
||||
"type": "integer"
|
||||
},
|
||||
"never_played_games": {
|
||||
"never_played_soundtracks": {
|
||||
"type": "integer"
|
||||
},
|
||||
"played_games": {
|
||||
"played_soundtracks": {
|
||||
"type": "integer"
|
||||
},
|
||||
"total_game_plays": {
|
||||
"total_soundtrack_plays": {
|
||||
"type": "integer"
|
||||
},
|
||||
"total_games": {
|
||||
"total_soundtracks": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user