greptilian logo

IRC log for #rest, 2016-06-02

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:33 fuzzyhorns joined #rest
02:24 tbsf joined #rest
02:58 tbsf joined #rest
03:31 tbsf joined #rest
03:42 tbsf joined #rest
04:24 bluezone joined #rest
04:27 quimrstorres joined #rest
04:36 tbsf joined #rest
04:53 quimrstorres joined #rest
04:54 Coldblackice joined #rest
04:55 tbsf joined #rest
05:33 wsieroci joined #rest
06:04 wsieroci joined #rest
06:07 Macaveli joined #rest
06:07 tbsf joined #rest
06:15 Macaveli joined #rest
06:18 _ollie joined #rest
06:35 tbsf_ joined #rest
06:48 quimrstorres joined #rest
07:29 interop_madness joined #rest
07:44 quimrstorres joined #rest
07:52 tbsf joined #rest
08:01 nesselbosch joined #rest
08:07 GriffinHeart joined #rest
08:27 tbsf joined #rest
08:49 tbsf joined #rest
10:37 GriffinHeart joined #rest
11:13 tbsf joined #rest
11:31 tbsf joined #rest
13:35 Macaveli_ joined #rest
13:43 Macaveli joined #rest
13:49 tbsf joined #rest
14:00 Macaveli_ joined #rest
14:10 tbsf joined #rest
14:16 tbsf joined #rest
14:25 interop_madness joined #rest
15:10 locks joined #rest
15:11 saml what do you tell to people who refuse to add rel="self"
15:16 tbsf joined #rest
15:17 tbsf joined #rest
15:28 wsiqueir joined #rest
16:38 whartung You shame them publicly by buying large billboards in their neigborhoods with embarrasing photos saml
16:52 tbsf joined #rest
16:52 tbsf joined #rest
16:53 tbsf joined #rest
17:00 tbsf joined #rest
17:00 Coldblackice joined #rest
17:23 saml whartung, haha i guess one good reasoning is HATEOAS
17:23 whartung yup!
17:23 saml or collection resource that embeds other resources
17:24 saml what about adding links to http headers  instead of representation?
17:25 saml there's no benefit other than convenience to prefer adding links in representation to headers?
17:25 whartung well, you should be using hypermedia -- links in teh headers are really only used for opaque, non-hyper media types (like JPG and GIF and what not)
17:25 saml oh i didn't think of it that way
17:26 saml that's good explanation
17:26 whartung it simply comes down to if  you're going to be at the level of REST where you're using links at all, in for a penny, in for a pound -- do it right.
17:26 whartung otherwsie just shove crap acorss HTTP and be done with it
17:26 tbsf joined #rest
17:27 saml what about a case where URL could change? like an article where editors change slug in url few times
17:27 saml what would rel=self  be?
17:27 whartung that's what the rels are for - with proper rels, you don't care what the url is
17:27 saml most up to date url?
17:28 saml i guess it could be some sort of guid (as in rss)
17:28 whartung you just dereference the rel when you need it
17:28 saml yeah
17:42 tbsf joined #rest
17:51 Macaveli joined #rest
18:01 pindonga anyone here that can advise on the use of swagger/raml for a) ensuring the documentation is always up to date, b) the server implementation can be tested against the spec thus ensuring api was not broken
18:01 pindonga am trying to understand what's involved in getting this done
18:22 whartung I've never used those pindonga
18:42 saml so they don't want to put links in representation cause what you GET what you PUT
18:42 saml they think links are data, not metadata
18:43 saml i can't explain well :|
18:43 saml but they are okay adding headers
18:44 saml res.headers.set('Links', links)     vs.   res.body._links = links;
18:44 saml well, i guess they just persist whatever is in PUT
18:44 saml without validation :P
18:45 whartung bbl
18:45 saml db.save(validate(req.body))
19:10 quimrstorres joined #rest
19:39 cvander joined #rest
19:40 cvander joined #rest
21:23 quimrstorres joined #rest
21:46 quimrstorres joined #rest
23:16 MikiSoft joined #rest
23:16 MikiSoft left #rest

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

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