greptilian logo

IRC log for #rest, 2014-12-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:01 tr3onlin_ joined #rest
00:03 marcoslamuria joined #rest
00:10 marcosla_ joined #rest
00:12 marcoslamuria joined #rest
00:45 introspectr3 left #rest
00:55 jackalista joined #rest
00:56 marcoslamuria joined #rest
01:15 quimrstorres joined #rest
01:23 tr3online joined #rest
01:59 lemur joined #rest
03:22 lufi having a hard time developing an api. our app devs wanted me to comply to them instead of vice versa
03:38 lufi i have an array of comment objects under an image object. is it necessary to put an id that references the image object in the comment object?
04:09 tr3onlin_ joined #rest
04:11 codeisgreat joined #rest
04:51 tr3online joined #rest
05:00 shrink0r joined #rest
05:03 dreamdust_ joined #rest
05:04 tr3online joined #rest
05:12 fumanchu joined #rest
06:20 dreamdust joined #rest
06:31 fumanchu_ joined #rest
07:25 shrink0r joined #rest
07:46 hkais joined #rest
07:54 _ollie joined #rest
07:59 tr3online joined #rest
08:04 lemur joined #rest
08:32 lufi is it ok to put the full representation (or partial) of a resource in the response body with a 201 created response?
08:33 Jarda I even say you should
08:33 Jarda but that's not 'SHOULD' in a sense that the spec would say
08:33 lufi yeah. i was reading the spec and theyre talking about using a location header
08:34 Jarda I say use both
08:34 _ollie agree, although you can balance between an additonal request needed (with Location header only) but bandwidth saved or the opposit
08:34 _ollie opposite
08:35 _ollie If you want the client to be in charge of the decision, expose a request parameter
08:35 Andre-B joined #rest
08:35 _ollie or whatever :)
08:35 Jarda yeah, well I have made 201 with Location header and no resource in body for endpoints like POST /log
08:35 lufi request parameter? you mean a value linking to the new resource?
08:36 Jarda because the client is not interested in any metadata / transformations the backend does
08:36 _ollie no, when posting… add an additional flag to express if you want to get a response or not
08:36 _ollie a response representation I mean
08:36 Jarda POST /endpoint?include_response=1
08:36 lufi _ollie i see so leave the decision to the client
08:36 _ollie for example…
08:37 lufi i got it now thanks guys
08:37 _ollie it totally depends on how much you know about the client…
08:37 lufi ok .any got a previous question
08:38 lufi 'i have an array of comment objects under an image object. is it necessary to put an id that references the image object in the comment object?'
08:45 tr3online joined #rest
09:13 marcoslamuria joined #rest
09:18 shrink0r joined #rest
09:22 graste joined #rest
09:41 quimrstorres joined #rest
09:41 tr3online joined #rest
09:43 quimrstorres joined #rest
09:45 Andre-B joined #rest
10:09 martinfilliau joined #rest
10:36 marcoslamuria joined #rest
10:39 tr3online joined #rest
11:03 sulky_ joined #rest
11:07 Left_Turn joined #rest
11:12 quimrstorres joined #rest
11:32 mezod joined #rest
11:39 mezod left #rest
12:10 quimrstorres joined #rest
12:20 marcoslamuria joined #rest
12:25 mezod joined #rest
12:26 proteusguy joined #rest
12:41 Left_Turn joined #rest
12:52 marcosla_ joined #rest
13:16 proteusguy joined #rest
14:07 mezod joined #rest
14:09 quimrstorres joined #rest
14:11 quimrstorres joined #rest
14:47 mezod joined #rest
15:22 quimrstorres joined #rest
15:38 Mxyzpltk joined #rest
15:48 shrink0r joined #rest
16:36 quimrstorres joined #rest
16:37 quimrstorres joined #rest
16:47 shrink0r joined #rest
17:35 tr3online joined #rest
17:43 sulky joined #rest
17:50 shrink0r joined #rest
17:51 fumanchu joined #rest
17:54 sulky joined #rest
18:08 mezod joined #rest
18:17 proteusguy_ joined #rest
18:33 pdurbin When I pass in "af203ad2-5138-4286-9c31-0d17ee434235" to say "this is me"... what is that thing? Is it a token or a key?
18:34 quimrstorres joined #rest
18:41 asdf` pdurbin, hmm, i think a key would be something you first send to the server so that it knows how to identify you, while a token is something a server sends you 'you shall be known by this'
18:43 pdurbin huh. never thought of it that way. I thought there would be agreement on what to call the thing no matter who is giving it and who is receiving it
18:44 asdf` well i'd call it a token anyway, yeah, but would argue it is a 'key' if the user generates it
18:46 asdf` if you're asking because you need to describe it, as opposed to just curiosity and the fun in running a poll, say it's a token; people could confuse it with other types of keys if you said it was a key
18:47 pdurbin yeah, I've been arguing for calling it a token. that's what github calls it
18:48 tr3online joined #rest
18:54 lemur joined #rest
19:09 lemur joined #rest
19:18 mezod joined #rest
19:25 marcoslamuria joined #rest
19:49 tr3onlin_ joined #rest
19:52 graste joined #rest
20:00 marcoslamuria joined #rest
20:04 jgornick joined #rest
20:09 mezod joined #rest
20:18 _ollie joined #rest
20:23 shrink0r joined #rest
20:32 quimrstorres joined #rest
21:03 marcoslamuria joined #rest
21:26 tr3online joined #rest
21:43 quimrstorres joined #rest
22:04 shrink0r_ joined #rest
22:14 quimrstorres joined #rest
22:20 quimrstorres joined #rest
23:42 dreamdust Why do people say that PUT bodies shouldn't be partial representations to update with ? reading rfc 7231 and nothing really states that the representation can't be complete
23:47 saml don't you PUT what you GET?
23:47 saml you got A. and you put  A'
23:48 saml or.. what you PUT is what you GET next time
23:48 saml https://twitter.com/fielding/status/275471320685367296
23:56 lufi joined #rest

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

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