xled-docs icon indicating copy to clipboard operation
xled-docs copied to clipboard

Post to `/xled/v1/playlist` with empty entries returns code: 0

Open scrool opened this issue 4 years ago • 0 comments

Interestingly following post:

POST /xled/v1/playlist HTTP/1.1
Host: REDACTED
User-Agent: python-requests/2.26.0
Accept-Encoding: gzip, deflate
Accept: */*
Connection: keep-alive
X-Auth-Token: KDrffKRHnEQ=
Content-Length: 15
Content-Type: application/json

{"entries": []}

Returns:

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 10
Connection: close

{"code":0}

Tested on FW versions: 2.6.0 and 2.8.3.

I'm not sure if it is only if entries are empty (which might mean that it returned number of items in the playlist) or it is generic response for this call.

scrool avatar Nov 27 '21 15:11 scrool