greptilian logo

IRC log for #rest, 2015-01-15

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:09 dreamdust lebster: If you want to use two resources, I recommend creating a "transaction" resource that allows you to essentially batch requests and runs them as a transactions
00:11 dreamdust I've created such a thing for most APIs I've worked on
00:11 dreamdust mainly because you'll often want to do transactions but don't want to create new resources for every combination
00:12 dreamdust something like POST /transactions [{ method: 'PUT', url: '/users/1', body: {…}, { method: 'PUT', url: '/departments/2', body: {…} }]
00:13 dreamdust then you can do that with any of your API resources
00:23 lebster hmmmmmm so you send a collection of http calls? then in your backend you figure out what methods go to what url and call them in a transaction?
00:39 lebster dreamdust: how about actions, say i have a project but its current status is set to "proposed" now a manager pulls all the projects with status proposed and he wants to update the status to "approved". now when the project gets approved a bunch of other crap has to happen and there's some validation that goes on. Am i suppose to just post to /project/123
00:39 lebster with the updated status field? and in my backend check every possible kind of update and perform that business logic on it? or do make something like /project/123/approve ?
00:44 shrink0r_ joined #rest
00:52 shrink0r joined #rest
01:10 shrink0r_ joined #rest
01:29 lebster joined #rest
02:00 interop_madness joined #rest
02:14 tr3online joined #rest
02:43 proteusguy joined #rest
03:06 dreamdust lebster: PUT or PATCH /projects/123 with  the new status, and yes on the backend perform the business logic. Using an evented model layer in your application code should make that fairly straightforward.
03:06 dreamdust what language are you working in
03:11 lebster C# Asp.net web api 2 and angularjs
04:09 lemur joined #rest
04:30 lemur joined #rest
05:49 tr3online joined #rest
06:44 shrink0r joined #rest
06:56 proteusguy joined #rest
07:48 rosstuck joined #rest
08:13 lemur joined #rest
08:15 fumanchu joined #rest
08:33 shrink0r joined #rest
08:43 azer_ joined #rest
09:00 _ollie joined #rest
09:03 Andre-B joined #rest
09:32 graste joined #rest
10:02 martinfilliau joined #rest
10:03 azer_ joined #rest
10:07 Left_Turn joined #rest
10:11 azer_ joined #rest
10:22 shrink0r joined #rest
10:28 azer_ joined #rest
10:40 mezod joined #rest
10:44 shrink0r joined #rest
10:45 Andre-B_ joined #rest
11:02 fumanchu_ joined #rest
11:57 DrCode joined #rest
12:18 willyham joined #rest
12:19 willyham Hello, has anyone in here used restlet?
12:23 shrink0r_ joined #rest
12:28 shrink0r joined #rest
12:40 azer_ joined #rest
12:55 _ollie joined #rest
12:57 proteusguy joined #rest
13:03 _ollie joined #rest
13:05 kevinswiber joined #rest
13:11 _ollie joined #rest
13:19 _ollie joined #rest
13:31 _ollie joined #rest
13:39 shrink0r joined #rest
13:41 _ollie joined #rest
13:55 azer_ joined #rest
14:03 _ollie joined #rest
14:11 _ollie joined #rest
14:15 _ollie joined #rest
14:18 _ollie joined #rest
14:32 kevinswiber joined #rest
14:39 shrink0r_ joined #rest
15:01 _ollie joined #rest
15:05 _ollie joined #rest
15:37 mikehaas763 joined #rest
15:39 mikehaas763 I'm looking at https://github.com/blongden/vnd.error and am wondering... when you request a resource... but get an error resource like vnd instead... what's the best way to check on the client whether you got an error representation before operating on the expected resource?
15:39 shrink0r joined #rest
15:53 trygvis the response code and content type should be checked
16:06 asdf` errr, should you even Accept a vnd.error? i guess you do?
16:10 shrink0r_ joined #rest
16:15 azer_ joined #rest
16:17 _ollie joined #rest
16:56 lemur joined #rest
16:59 kevinswiber joined #rest
17:08 lemur joined #rest
17:14 mikehaas763 trygvis, ok so basically I need to check if it was a 4xx error?
17:26 kevinswiber joined #rest
17:49 azer_ joined #rest
18:04 tr3online joined #rest
18:08 kevinswiber joined #rest
18:18 Andre-B joined #rest
18:21 kevinswiber joined #rest
19:22 _ollie joined #rest
19:31 shrink0r joined #rest
19:31 _ollie joined #rest
19:34 tr3online joined #rest
19:38 lebster dreamdust: are you familiar with .net c#?
20:37 kevinswiber joined #rest
20:38 adaro_ joined #rest
20:50 kevinswiber joined #rest
20:55 kevinswiber joined #rest
20:56 kevinswiber joined #rest
21:02 azer_ joined #rest
21:05 kevinswiber joined #rest
21:40 huckleberry78 joined #rest
21:43 huckleberry78 joined #rest
21:46 huckleberry78 joined #rest
21:46 huckleberry78 joined #rest
22:23 adaro joined #rest
22:44 ekroon_ joined #rest
23:10 philbot joined #rest
23:13 sulky joined #rest
23:13 daxim joined #rest
23:13 blongden joined #rest
23:13 zama joined #rest
23:13 mezod joined #rest
23:13 gamache joined #rest
23:13 trygvis joined #rest
23:13 rickharrison joined #rest
23:13 tmoore_ joined #rest
23:13 mgomezch joined #rest
23:13 dreamdust joined #rest
23:13 asdf` joined #rest
23:13 aGHz joined #rest
23:13 asm89 joined #rest
23:13 ramsey joined #rest
23:13 pdurbin joined #rest
23:13 Left_Turn joined #rest
23:13 riddle joined #rest
23:13 HighBit joined #rest
23:13 imanc joined #rest
23:13 bigbluehat joined #rest
23:13 igitoor joined #rest
23:13 gluegadget joined #rest
23:13 `0660 joined #rest
23:13 rosstuck joined #rest
23:13 CentaurWarchief joined #rest
23:13 adaro joined #rest
23:13 tr3onlin_ joined #rest
23:13 Davey joined #rest
23:13 ChrisAnn_ joined #rest
23:13 whartung joined #rest
23:13 ekroon joined #rest
23:13 kevinswiber joined #rest
23:13 shrink0r joined #rest
23:13 proteusguy joined #rest
23:13 SupaHam joined #rest
23:13 locks joined #rest
23:13 jgornick joined #rest
23:13 Jarda joined #rest
23:13 vlakarados_ joined #rest
23:13 blindscreen_ joined #rest
23:13 saml joined #rest
23:13 cythrawll joined #rest
23:13 alxbl joined #rest
23:13 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
23:14 lebster joined #rest
23:14 fumanchu joined #rest
23:14 lufi joined #rest
23:14 asm89 joined #rest
23:16 mezod joined #rest
23:16 blahdeblah joined #rest
23:29 ramsey joined #rest
23:30 aGHz joined #rest
23:31 lufi joined #rest
23:39 shrink0r_ joined #rest
23:40 DrCode joined #rest
23:46 jackalista joined #rest

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

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