[API Request] Save Play Queue using POST body #49
Closed
kgarner7
started this conversation in
API requests
Replies: 1 comment 4 replies
-
|
See #26 the discussion was not started but the need is more global than just this endpoint. There's the same issues with playlists and a few other cases. We maybe should not use JSON for the XML users to not have to embed a new library just for that and limit to |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Type of change
API extension
Proposal description
Currently, the savePlayQueue endpoint is GET only (as are other endpoints). This is fine for small queues, but with play queues in the 1000s, you will run into 414 URI Too Long with reverse proxies. Having this endpoint also as POST will support a much larger queue (without hitting 414s).
Backward compatibility impact
Since it would be a POST method, there should be no impact on the existing endpoint.
Backward compatibility
API details
POST/rest/savePlayQueueParameters:
id: song id in play queue, one per song (or a single field, comma separated)current(optional): id of current songposition(optional, number): position in ms of current songData encoded as either
application/x-www-form-urlencodedorapplication/jsonSecurity impacts
There should be sensible limits on the maximum size of the POST body (not sure what this number would be).
Potential issues
No response
Alternative solutions
No response
Beta Was this translation helpful? Give feedback.
All reactions