feat(sunsonic): expose type serverVersion in subsonic responses

https://opensubsonic.netlify.app/docs/responses/subsonic-response/
https://github.com/opensubsonic/open-subsonic-api/discussions/3
This commit is contained in:
sentriz
2023-04-08 01:20:34 +01:00
parent 3974b0d844
commit b8fceae383
32 changed files with 124 additions and 90 deletions

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"albumList": {
"album": [
{

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"albumList": {
"album": [
{

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"albumList": {
"album": [
{

View File

@@ -3,8 +3,22 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"albumList": {
"album": [
{
"id": "al-13",
"coverArt": "al-13",
"artist": "artist-2",
"created": "2019-11-30T00:00:00Z",
"title": "album-2",
"album": "",
"parent": "al-10",
"isDir": true,
"name": "",
"songCount": 3,
"duration": 300
},
{
"id": "al-12",
"coverArt": "al-12",
@@ -32,26 +46,13 @@
"duration": 300
},
{
"id": "al-4",
"coverArt": "al-4",
"id": "al-5",
"coverArt": "al-5",
"artist": "artist-0",
"created": "2019-11-30T00:00:00Z",
"title": "album-1",
"album": "",
"parent": "al-2",
"isDir": true,
"name": "",
"songCount": 3,
"duration": 300
},
{
"id": "al-13",
"coverArt": "al-13",
"artist": "artist-2",
"created": "2019-11-30T00:00:00Z",
"title": "album-2",
"album": "",
"parent": "al-10",
"parent": "al-2",
"isDir": true,
"name": "",
"songCount": 3,
@@ -110,11 +111,11 @@
"duration": 300
},
{
"id": "al-5",
"coverArt": "al-5",
"id": "al-4",
"coverArt": "al-4",
"artist": "artist-0",
"created": "2019-11-30T00:00:00Z",
"title": "album-2",
"title": "album-1",
"album": "",
"parent": "al-2",
"isDir": true,

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"albumList2": {
"album": [
{

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"albumList2": {
"album": [
{

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"albumList2": {
"album": [
{

View File

@@ -3,60 +3,9 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"albumList2": {
"album": [
{
"id": "al-3",
"coverArt": "al-3",
"artistId": "ar-1",
"artist": "artist-0",
"created": "2019-11-30T00:00:00Z",
"title": "",
"album": "",
"name": "album-0",
"songCount": 3,
"duration": 300,
"year": 2021
},
{
"id": "al-5",
"coverArt": "al-5",
"artistId": "ar-1",
"artist": "artist-0",
"created": "2019-11-30T00:00:00Z",
"title": "",
"album": "",
"name": "album-2",
"songCount": 3,
"duration": 300,
"year": 2021
},
{
"id": "al-11",
"coverArt": "al-11",
"artistId": "ar-3",
"artist": "artist-2",
"created": "2019-11-30T00:00:00Z",
"title": "",
"album": "",
"name": "album-0",
"songCount": 3,
"duration": 300,
"year": 2021
},
{
"id": "al-9",
"coverArt": "al-9",
"artistId": "ar-2",
"artist": "artist-1",
"created": "2019-11-30T00:00:00Z",
"title": "",
"album": "",
"name": "album-2",
"songCount": 3,
"duration": 300,
"year": 2021
},
{
"id": "al-13",
"coverArt": "al-13",
@@ -84,14 +33,27 @@
"year": 2021
},
{
"id": "al-8",
"coverArt": "al-8",
"artistId": "ar-2",
"artist": "artist-1",
"id": "al-11",
"coverArt": "al-11",
"artistId": "ar-3",
"artist": "artist-2",
"created": "2019-11-30T00:00:00Z",
"title": "",
"album": "",
"name": "album-1",
"name": "album-0",
"songCount": 3,
"duration": 300,
"year": 2021
},
{
"id": "al-3",
"coverArt": "al-3",
"artistId": "ar-1",
"artist": "artist-0",
"created": "2019-11-30T00:00:00Z",
"title": "",
"album": "",
"name": "album-0",
"songCount": 3,
"duration": 300,
"year": 2021
@@ -109,6 +71,45 @@
"duration": 300,
"year": 2021
},
{
"id": "al-5",
"coverArt": "al-5",
"artistId": "ar-1",
"artist": "artist-0",
"created": "2019-11-30T00:00:00Z",
"title": "",
"album": "",
"name": "album-2",
"songCount": 3,
"duration": 300,
"year": 2021
},
{
"id": "al-9",
"coverArt": "al-9",
"artistId": "ar-2",
"artist": "artist-1",
"created": "2019-11-30T00:00:00Z",
"title": "",
"album": "",
"name": "album-2",
"songCount": 3,
"duration": 300,
"year": 2021
},
{
"id": "al-8",
"coverArt": "al-8",
"artistId": "ar-2",
"artist": "artist-1",
"created": "2019-11-30T00:00:00Z",
"title": "",
"album": "",
"name": "album-1",
"songCount": 3,
"duration": 300,
"year": 2021
},
{
"id": "al-12",
"coverArt": "al-12",

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"album": {
"id": "al-3",
"coverArt": "al-3",

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"album": {
"id": "al-2",
"created": "2019-11-30T00:00:00Z",

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"artist": {
"id": "ar-1",
"name": "artist-0",

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"artist": {
"id": "ar-3",
"name": "artist-2",

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"artist": {
"id": "ar-2",
"name": "artist-1",

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"artists": {
"ignoredArticles": "",
"index": [

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"artists": {
"ignoredArticles": "",
"index": [

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"artists": {
"ignoredArticles": "",
"index": [

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"indexes": {
"lastModified": 0,
"ignoredArticles": "",

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"indexes": {
"lastModified": 0,
"ignoredArticles": "",

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"indexes": {
"lastModified": 0,
"ignoredArticles": "",

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"directory": {
"id": "al-3",
"parent": "al-2",

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"directory": {
"id": "al-2",
"parent": "al-1",

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"searchResult3": {
"album": [
{

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"searchResult3": {
"artist": [
{ "id": "ar-1", "name": "artist-0", "albumCount": 3 },

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"searchResult3": {
"song": [
{

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"searchResult2": {
"album": [
{

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"searchResult2": {
"artist": [
{ "id": "al-2", "parent": "al-1", "name": "artist-0" },

View File

@@ -3,6 +3,7 @@
"status": "ok",
"version": "1.15.0",
"type": "gonic",
"serverVersion": "",
"searchResult2": {
"song": [
{