greptilian logo

IRC log for #rest, 2015-05-04

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:08 shrink0r_ joined #rest
01:19 shrink0r joined #rest
01:21 shrink0r_ joined #rest
01:39 baweaver joined #rest
01:40 fumanchu_ joined #rest
01:48 shrink0r joined #rest
03:11 fumanchu joined #rest
05:40 fumanchu_ joined #rest
06:51 baweaver joined #rest
06:52 baweaver joined #rest
07:43 azer joined #rest
07:44 rosstuck joined #rest
07:49 shrink0r joined #rest
07:49 searchbot` joined #rest
07:50 mgomezch_ joined #rest
07:53 graste joined #rest
08:29 vanHoesel joined #rest
09:05 vanHoesel joined #rest
09:09 quimrstorres joined #rest
09:14 quimrstorres joined #rest
09:17 quimrstorres joined #rest
10:12 vanHoesel joined #rest
10:15 ub joined #rest
10:25 quimrstorres joined #rest
11:23 vanHoesel joined #rest
11:32 rosstuck joined #rest
11:54 interop_madness joined #rest
11:58 _ollie joined #rest
11:59 _ollie joined #rest
12:05 sfisque joined #rest
12:23 vanHoesel joined #rest
13:00 quimrstorres joined #rest
13:07 Left_Turn joined #rest
13:23 shrink0r_ joined #rest
13:25 shrink0r joined #rest
13:30 ub joined #rest
14:03 sfisque joined #rest
14:16 saml joined #rest
14:16 quimrstorres joined #rest
14:38 moep joined #rest
14:54 quimrstorres joined #rest
16:03 mezod joined #rest
16:19 sfisque joined #rest
16:26 ralphschindler joined #rest
16:29 ub joined #rest
16:38 sfisque philosophical question - is it considered poor design to allow POSTing to create an object or should it fail with a message that the object needs to be PUT'ed first?
16:39 sfisque **and
16:41 fumanchu_ it's quite common to allow a POST to create a new resource, particularly when you POST to a resource that is considered a "container" for the newly-created resources
16:42 asdf` sfisque, usually you POST first, to a 'collection' resource, and then the server creates the resource for you and returns a Location header with the URL; if you know beforehand the URL at which you want the new resource to be, you can PUT that directly (but you usually don't)
16:42 fumanchu_ e.g. POST to things/ creates things/1/
16:43 sfisque right but if it's an object where the "key" is generated and not "indexed" does it make sense to POST if you don't have the PK in hand?  it seems semantically wrong to POST without an identifier for the object
16:43 whartung POST is used when you (the client) don't have (or want) control over the naming of the resource. If you know the name then PUT is more appropriate
16:44 sfisque that makes sense to me
16:45 sfisque i have to sometimes forget the rdbms world where "name" and "PK" are generally divorced
16:57 blahdeblah joined #rest
18:00 ralphschindler joined #rest
18:31 ralphschindler joined #rest
18:32 sfisque joined #rest
18:43 vanHoesel joined #rest
19:04 _ollie joined #rest
19:07 ralphschindler joined #rest
19:07 vanHoesel joined #rest
19:20 shrink0r joined #rest
19:41 begriffs joined #rest
19:44 ralphschindler joined #rest
19:54 vanHoesel joined #rest
20:11 interop_home joined #rest
20:33 locks joined #rest
20:36 jgornick joined #rest
20:47 StatelessCat joined #rest
20:50 fumanchu joined #rest
20:51 ralphschindler joined #rest
21:00 _ollie joined #rest
21:46 fumanchu_ joined #rest
21:47 angular_mike joined #rest
22:03 _ollie joined #rest
22:21 quimrstorres joined #rest
23:04 _ollie joined #rest
23:22 sfisque joined #rest

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

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