rest API migration (WIP) + fixes.

master
Rémi Cocula 8 years ago
parent 44de72c602
commit dbda1132df
  1. 2
      libresonic-main/src/main/java/org/libresonic/player/controller/PlaylistController.java
  2. 2
      libresonic-main/src/main/java/org/libresonic/player/controller/PodcastReceiverAdminController.java
  3. 6
      libresonic-main/src/main/java/org/libresonic/player/controller/RESTController.java
  4. 4
      libresonic-main/src/main/webapp/WEB-INF/jsp/podcastChannels.jsp
  5. 22
      libresonic-main/src/test/resources/libresonic-rest-api-soapui-project.xml

@ -79,7 +79,7 @@ public class PlaylistController {
map.put("editAllowed", username.equals(playlist.getUsername()) || securityService.isAdmin(username));
map.put("partyMode", userSettings.isPartyModeEnabled());
return new ModelAndView("playList","model",map);
return new ModelAndView("playlist","model",map);
}

@ -47,7 +47,7 @@ public class PodcastReceiverAdminController {
@Autowired
private PodcastService podcastService;
@RequestMapping(method = RequestMethod.GET)
@RequestMapping(method = RequestMethod.POST)
protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception {
Integer channelId = ServletRequestUtils.getIntParameter(request, "channelId");

@ -263,7 +263,7 @@ public class RESTController {
jaxbWriter.writeResponse(request, response, res);
}
@SuppressWarnings("UnusedDeclaration")
@RequestMapping(value = "/rest/getSongsByGenre", method = RequestMethod.GET)
public void getSongsByGenre(HttpServletRequest request, HttpServletResponse response) throws Exception {
request = wrapRequest(request);
Player player = playerService.getPlayer(request, response);
@ -754,7 +754,7 @@ public class RESTController {
jaxbWriter.writeResponse(request, response, res);
}
@SuppressWarnings("UnusedDeclaration")
@RequestMapping(value = "/rest/getPlaylists", method = RequestMethod.GET)
public void getPlaylists(HttpServletRequest request, HttpServletResponse response) throws Exception {
request = wrapRequest(request);
@ -1500,7 +1500,7 @@ public class RESTController {
jaxbWriter.writeResponse(request, response, res);
}
@SuppressWarnings("UnusedDeclaration")
@RequestMapping(value = "/rest/getPodcasts", method = RequestMethod.GET)
public void getPodcasts(HttpServletRequest request, HttpServletResponse response) throws Exception {
request = wrapRequest(request);
Player player = playerService.getPlayer(request, response);

@ -99,7 +99,7 @@
</tr></table>
<c:if test="${model.user.podcastRole}">
<form method="post" action="podcastReceiverAdmin.view?">
<form:form method="post" action="podcastReceiverAdmin.view?">
<table>
<tr>
<td><fmt:message key="podcastreceiver.subscribe"/></td>
@ -107,7 +107,7 @@
<td><input type="submit" value="<fmt:message key="common.ok"/>"/></td>
</tr>
</table>
</form>
</form:form>
</c:if>
</body>

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