Class EndpointHelper


  • public class EndpointHelper
    extends Object
    • Constructor Detail

      • EndpointHelper

        public EndpointHelper()
    • Method Detail

      • fixDuplicateEndpointParameters

        public static void fixDuplicateEndpointParameters​(SpotifyWebApi spotifyWebApi)
        Fixes duplicated endpoint parameters. Some endpoints allow to pass data either via query argument or via body. As the url has a length limit, passing to much data in the query string might result in an error response. Therefore this method removes the option to pass the data via query argument and makes the body parameter mandatory.
        Parameters:
        spotifyWebApi - the spotify web api documentation
      • fixDuplicateEndpointParameters

        public static void fixDuplicateEndpointParameters​(SpotifyWebApiEndpoint endpoint)
        Fixes duplicated endpoint parameters. Some endpoints allow to pass data either via query argument or via body. As the url has a length limit, passing to much data in the query string might result in an error response. Therefore this method removes the option to pass the data via query argument and makes the body parameter mandatory.
        Parameters:
        endpoint - the spotify api endpoint to fix