...
Info |
---|
Modifies a specific channel or returns all channels when no ID is provided during GET Note: will return the scoring stats for a channel when making a GET call with except when you don't provide a channel_id |
Possible Methods
...
Code Block |
---|
curl -b cookies.txt -X GET "http://localhost:8185/channel" > response.txt curl -b cookies.txt -X GET "http://localhost:8185/channel/531733e8b8e08e9d2197b0b0" > response.txt curl -b cookies.txt -X POST -d '{"name":"abc123"}' "http://localhost:8185/channel" > response.txt curl -b cookies.txt -X PUT-d '{"name":"renamed my channel"}' "http://localhost:8185/channel/531733e8b8e08e9d2197b0b0" > response.txt curl -b cookies.txt -X PUT-d '{"channel_id":"531733e8b8e08e9d2197b0b0", "name":"renamed my channel"}' "http://localhost:8185/channel" > response.txt curl -b cookies.txt -X DELETE -d '{"channel":"531733e8b8e08e9d2197b0b0"}' "http://localhost:8185/channel" > response.txt curl -b cookies.txt -X DELETE "http://localhost:8185/channel/531733e8b8e08e9d2197b0b0" > response.txt |
Example Response
Info | ||
---|---|---|
curl -b cookies.txt -X PUT -d '{"name":"search test1"}' "http://localhost:8185/channel/53455c56e4b020ab310aeb9c" > response.txt
|
Info | ||
---|---|---|
curl -b cookies.txt -X GET "http://localhost:8185/channel" > response.txt
|