greptilian logo

IRC log for #rest, 2014-11-20

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
01:10 shrink0r_ joined #rest
01:21 Porpado joined #rest
01:43 maxgsc joined #rest
01:43 maxgsc left #rest
01:51 talios It's sad that we still tie this shit to HTTP - the worse mechanism for an API ever
01:51 talios response codes are soo limited - api.error or whatever needs to become "the standard"
02:10 tr3online joined #rest
02:18 tr3online joined #rest
03:27 * pdurbin sends a 204 on delete because of this spec: http://swordapp.github.io/SWORDv2-Profile/SWORDProfile.html#protocoloperations_deletingcontent
03:34 tr3onlin_ joined #rest
03:37 talios I *think* 200 or 204 is ok.   201 would be just wack :)
03:39 pdurbin I didn't even choose 204 consciously. It's what I library I'm using returned so I went with it. The spec is a profile of AtomPub: http://tools.ietf.org/html/rfc5023
03:54 talios ahh
03:57 pdurbin of course, AtomPub doesn't seem to require 204 for delete
04:01 shrink0r joined #rest
04:32 lemur joined #rest
04:39 tr3online joined #rest
04:52 lemur joined #rest
05:35 _ollie joined #rest
06:08 fumanchu joined #rest
06:14 heath joined #rest
07:05 proteusguy joined #rest
07:46 rosstuck joined #rest
08:21 talios joined #rest
08:44 lemur joined #rest
09:00 itscaleb_ joined #rest
09:09 shrink0r joined #rest
09:30 marcoslamuria joined #rest
09:34 shrink0r_ joined #rest
09:34 tr3online joined #rest
09:39 martinfilliau joined #rest
09:44 whartung joined #rest
09:50 _ollie joined #rest
09:52 _ollie1 joined #rest
10:53 proteusguy joined #rest
11:35 tr3online joined #rest
12:09 Left_Turn joined #rest
12:50 Jarda hello, anyone awake?
12:50 Jarda I have resource that I fetch using GET /foos
12:51 Jarda I have a 3rd party webservice that I use to populate Foos
12:51 Jarda the service a) is slow b) costs the user every time it's queried
12:52 Jarda so I guess calling the 3rd party service should be behind some POST route?
12:52 Jarda like POST /foos/update
12:52 Jarda what do you think?
12:52 Jarda GET /foos?update=1 doesn't sound right to me
12:54 pdurbin a boolean like that seems fine to me
12:55 Jarda I'm just thinking about the semantics
12:55 Jarda a GET request should not have side effects
12:56 Jarda and that clearly has side effects
12:57 pdurbin the person calling GET probably doesn't care if you use an expensive 3rd party webservice or not
12:57 Jarda well he should. Because it's he who pays the 3rd party service bill :D
12:57 Jarda my service just acts as a 'proxy'
12:59 pdurbin I guess he'll learn to do fewer GETs then :)
12:59 pdurbin after the first bill
12:59 Jarda hmm, yeah maybe
12:59 Jarda but how about the semantics of the HTTP verbs?
13:01 pdurbin you think a POST should cost money but a GET shouldn't?
13:03 Jarda well maybe that too, but mostly the side effects
13:12 MV48 joined #rest
13:12 MV48 left #rest
13:34 graste joined #rest
13:37 tr3online joined #rest
13:40 riso joined #rest
13:40 riso I have this code              http://pastebin.com/jcPmXM0e                           as you'll see the out string shows in scientific notation, how do I make it look exactly as the input string? I mean       123456789        the ouput I get now is 1.23456789E8
13:47 trygvis Jarda: changing the URL is strange, then it suddenly becomes a new resource
13:47 trygvis is the client going to decide if they want a new backend lookup?
13:48 trygvis if you want to control it for them on the server side, you could do a if-modified-since where they send the last time they got their value
14:26 Jarda trygvis: yeah well I tend to have these 'remote operations' as subresources and I call them with POST
14:26 Jarda IMO it's better than sending custom payloads to the root reosurce
14:26 Jarda trygvis: and yeah, I think I'd like the customer to explicitely choose when they want to have refreshed resources
14:27 Jarda the normal use case will be that they schedule updates (hourly/daily/weekly) and then I use webhooks to notify clients when the stuff has been updated
15:09 quimrstorres joined #rest
15:38 tr3online joined #rest
16:40 tr3online joined #rest
17:19 lemur joined #rest
17:27 lemur joined #rest
17:47 tr3online joined #rest
17:54 shrink0r joined #rest
18:03 graste joined #rest
18:05 fumanchu joined #rest
18:19 graste joined #rest
18:46 tr3online joined #rest
18:53 itscaleb joined #rest
18:57 quimrstorres joined #rest
20:33 talios joined #rest
20:41 shrink0r joined #rest
20:52 marcoslamuria joined #rest
20:54 quimrstorres joined #rest
22:13 Left_Turn joined #rest
22:58 tr3online joined #rest

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

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