greptilian logo

IRC log for #rest, 2017-09-27

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:04 wittysense joined #rest
00:08 tbsf joined #rest
03:25 leclerc joined #rest
04:30 philbot joined #rest
04:30 Topic for #rest is now #rest REpresentational State Transfer | logs: http://irclog.greptilian.com/rest/today |  http://tech.groups.yahoo.com/group/rest-discuss | http://code.google.com/p/implementing-rest/ | http://en.wikipedia.org/wiki/Representational_State_Transfer
06:49 Haudegen joined #rest
08:04 interop_madness joined #rest
08:04 interop_madness joined #rest
08:35 _ollie joined #rest
09:22 LumberJill joined #rest
09:23 LumberJill Hello, is it acceptable to return relative URIs to the client in HATEAOS?
09:26 michalrus left #rest
09:40 trygvis LumberJill: that would depend on the media type you use
09:40 trygvis html has explicit support for it
09:44 LumberJill trygvis: I am using JSON
09:45 trygvis json is not a hypermedia
09:47 LumberJill it's a media type no?
09:52 LumberJill sorry I m confused
10:40 trygvis sorry, I really meant hypermedia
10:48 _ollie I'd prefer absolute URIs as they make client lives much easier. Just take the URI and resolve. No need to remember where the last request went, concatenate URIs etc.
11:06 trygvis yeah, I don't see many systems using relative URLs
11:40 drcode joined #rest
12:53 Haudegen joined #rest
13:51 LumberJill All right thanks guys
13:51 pdurbin I'd favor abosolute URLs too.
13:53 LumberJill I was just having a problem getting the context of my app because I am injecting the Hypermedia links in a different domain but I figured it out so I am going with the absolute URIs
13:53 leclerc trygvis: it's kind of annoying because relative URLs have doubled the code of my URL class.
13:53 leclerc trygvis: things would be soooo much simpler...
14:16 wsieroci joined #rest
14:18 drcode joined #rest
14:23 vanHoesel joined #rest
15:24 KevBurnsJr joined #rest
15:25 KevBurnsJr What up, my glip glops?
15:27 KevBurnsJr So I started working at a company that's actually taken REST pretty far
15:27 KevBurnsJr largest scale REST deployment I've worked with
15:29 KevBurnsJr We have web and mobile based api clients as well as a number of set top boxes with long release lead times deployed in the wild
15:34 KevBurnsJr our API looks something like this https://gist.github.com/KevBurnsJr/0bfa6690a66815c1ec64a0375e5429f5
15:35 KevBurnsJr custom hypermedia format with 4 json root elements (__class__, __href__, __links__, __actions__)
15:35 KevBurnsJr and the response content-type is ... application/json
15:36 KevBurnsJr so naturally I told my colleagues, "technically this is not REST since it doesn't use hypermedia."
15:37 KevBurnsJr but I have yet to explain to them why this aspect of the hypermedia constraint is significant
15:47 KevBurnsJr I'm hoping to do this in a blog post some time in the next week or so
15:47 KevBurnsJr If anyone would like to read the working draft I'd much appreciate feedback
15:47 KevBurnsJr https://gist.github.com/KevBurnsJr/2105cf1316ad16a3f740773b10c06829
15:51 KevBurnsJr We also have some teams using the API that are complaining that the initial entrypoint fetches and extra hops required by hypermedia are slowing down their UIs
15:53 KevBurnsJr I'm hoping I can devise a strategy for using embedded resources like HAL does to create better composite endpoints for clients where latency is important
15:54 KevBurnsJr Maybe with some arm twisting I can even get us to transition completely to HAL
16:01 KevBurnsJr If all goes according to plan, I should have plenty to talk about at next year's REST FEST :)
16:17 pdurbin KevBurnsJr: looks like you have some relative URLs (and absoute). LumberJill was just asking about this.
16:22 LumberJill- joined #rest
16:22 wsieroci joined #rest
16:31 KevBurnsJr pdurbin hi
16:31 KevBurnsJr I'm off to work but I'll be back online in a bit
17:06 Haudegen joined #rest
17:07 whartung joined #rest
18:51 wsieroci joined #rest
19:05 daxim joined #rest
19:48 _ollie joined #rest
21:41 wittysense joined #rest

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

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