rest API migration (WIP).

master
Rémi Cocula 8 years ago
parent e51e2e8b10
commit 5b2297af96
  1. 4
      libresonic-main/src/main/java/org/libresonic/player/controller/RESTController.java
  2. 17
      libresonic-main/src/test/resources/libresonic-rest-api-soapui-project.xml

@ -543,7 +543,7 @@ public class RESTController {
return jaxbPlaylist; return jaxbPlaylist;
} }
@SuppressWarnings("UnusedDeclaration") @RequestMapping(value = "/rest/getAlbum", method = RequestMethod.GET)
public void getAlbum(HttpServletRequest request, HttpServletResponse response) throws Exception { public void getAlbum(HttpServletRequest request, HttpServletResponse response) throws Exception {
request = wrapRequest(request); request = wrapRequest(request);
Player player = playerService.getPlayer(request, response); Player player = playerService.getPlayer(request, response);
@ -1115,7 +1115,7 @@ public class RESTController {
jaxbWriter.writeResponse(request, response, res); jaxbWriter.writeResponse(request, response, res);
} }
@SuppressWarnings("UnusedDeclaration") @RequestMapping(value = "/rest/getRandomSongs", method = RequestMethod.GET)
public void getRandomSongs(HttpServletRequest request, HttpServletResponse response) throws Exception { public void getRandomSongs(HttpServletRequest request, HttpServletResponse response) throws Exception {
request = wrapRequest(request); request = wrapRequest(request);
Player player = playerService.getPlayer(request, response); Player player = playerService.getPlayer(request, response);

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save