greptilian logo

IRC log for #rest, 2016-03-10

https://trygvis.io/rest-wiki/

| Channels | #rest index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
00:45 whartung_ joined #rest
00:49 pith joined #rest
00:51 Caelum joined #rest
00:53 fuzzyhorns joined #rest
01:01 gblfxt_ joined #rest
01:06 fuzzyhorns joined #rest
01:49 timg___ joined #rest
01:53 htowngangsta joined #rest
02:15 fumanchu joined #rest
02:55 fumanchu joined #rest
07:56 timg___ joined #rest
08:12 gblfxt__ joined #rest
08:14 trygvis joined #rest
08:23 gigo1980 joined #rest
08:35 whartung_ joined #rest
08:38 riddle joined #rest
08:39 impl joined #rest
08:40 rickharrison joined #rest
08:42 ChrisAnn joined #rest
08:44 graste joined #rest
08:44 graste joined #rest
08:47 bigbluehat joined #rest
08:56 angular_mike___ joined #rest
10:15 nesselbosch joined #rest
14:04 quimrstorres joined #rest
14:25 tbsf joined #rest
15:36 interop_madness joined #rest
15:42 tbsf joined #rest
16:41 tbsf joined #rest
17:14 fumanchu joined #rest
18:36 Devastator_ joined #rest
18:54 gigo1980 joined #rest
19:04 Devastator_ joined #rest
19:30 Coldblackice joined #rest
19:48 timg___ joined #rest
19:58 keex joined #rest
19:59 keex hello!
20:00 whartung o hai! o/
20:01 keex hey, imagine your resource is a music player. its resources are playlist and track.
20:01 whartung imagine
20:01 whartung I'll try, music isn't my forté, I can't play the radio.
20:02 keex playlist aside; if i could target one specific track and play it, pause and stop it
20:02 keex would one create a api liste so? :   /tracks/id/play    for play ?
20:03 keex that would be adding a VERB into the uri ....
20:03 whartung I'd create a "playing track" resource, which links to the original track, and change its state as appropropriate (PLAYING, STOPPED)
20:04 keex or would you POST to /tracks/id   messages such as {"command": "play"}, {"command": "pause"} and {"command": "stop"} ?
20:04 impl i think i'd have some media controls resources that you could send a playlist URL etc to
20:04 whartung like I said, i wouldn't do either. I'm assuming that there could be more than one stream playing form a single track
20:05 whartung anyway, gotta run to lunch, bbl
20:05 impl https://en.wikipedia.org/wiki/Media_controls roughly like this
20:06 keex whartung, how would you change the state?
20:06 keex real quick
20:06 keex post / patch / put?
20:06 fumanchu joined #rest
20:06 whartung PUT /playingtrack/{id} with a payload with a new "status" value.
20:07 keex whartung and impl, thank you!
20:08 keex impl, it isn't really media.. processes that can be created (play) / resumed (pause) / terminated (stop)
20:08 Macaveli joined #rest
20:09 impl keex: ah. yeah. i think i'd just use one "state" URI in that case
20:10 keex like whartung suggested?
20:10 impl yeah
20:10 keex yeah, ok. :)
20:14 rosstuck joined #rest
20:24 Davey joined #rest
20:24 Davey joined #rest
21:37 keex joined #rest
21:44 gigo1980 joined #rest
22:15 timg___ joined #rest
22:26 tbsf joined #rest
22:32 gigo1980 joined #rest
22:47 gigo1980 joined #rest
23:05 fumanchu joined #rest
23:22 tbsf joined #rest
23:25 keex joined #rest

| Channels | #rest index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

https://trygvis.io/rest-wiki/