From 312774de9b2465cd11243783cc2a59aa2acd57a2 Mon Sep 17 00:00:00 2001 From: Andrew DeMaria Date: Sat, 25 Mar 2017 00:23:43 -0600 Subject: [PATCH] Added type to rest api --- .../main/java/org/libresonic/player/controller/JAXBWriter.java | 1 + libresonic-rest-api/src/main/resources/libresonic-rest-api.xsd | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libresonic-main/src/main/java/org/libresonic/player/controller/JAXBWriter.java b/libresonic-main/src/main/java/org/libresonic/player/controller/JAXBWriter.java index 5152547d..33f1cf38 100644 --- a/libresonic-main/src/main/java/org/libresonic/player/controller/JAXBWriter.java +++ b/libresonic-main/src/main/java/org/libresonic/player/controller/JAXBWriter.java @@ -104,6 +104,7 @@ public class JAXBWriter { Response response = new ObjectFactory().createResponse(); response.setStatus(ok ? ResponseStatus.OK : ResponseStatus.FAILED); response.setVersion(restProtocolVersion); + response.setType("Libresonic"); return response; } diff --git a/libresonic-rest-api/src/main/resources/libresonic-rest-api.xsd b/libresonic-rest-api/src/main/resources/libresonic-rest-api.xsd index af594b41..66467b67 100644 --- a/libresonic-rest-api/src/main/resources/libresonic-rest-api.xsd +++ b/libresonic-rest-api/src/main/resources/libresonic-rest-api.xsd @@ -4,7 +4,7 @@ targetNamespace="http://libresonic.org/restapi" attributeFormDefault="unqualified" elementFormDefault="qualified" - version="1.13.0"> + version="1.14.0"> @@ -52,6 +52,7 @@ +