greptilian logo

IRC log for #rest, 2015-06-21

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:07 ChrisAnn joined #rest
00:07 StatelessCat joined #rest
00:07 SupaHam joined #rest
00:14 rickharrison joined #rest
00:27 rickharrison_ joined #rest
00:27 zama_ joined #rest
00:28 asdf`_ joined #rest
00:32 locks_ joined #rest
00:32 baweaver_ joined #rest
00:33 mamund_ joined #rest
00:34 ReScO_ joined #rest
00:39 bigbluehat_ joined #rest
00:41 angular_mike_ joined #rest
00:41 yuciyuar joined #rest
00:41 ChrisAnn joined #rest
00:41 igitoor joined #rest
00:42 ChrisAnn joined #rest
00:42 angular_mike_ joined #rest
00:44 trygvis_ joined #rest
00:44 riddle joined #rest
00:45 igitoor joined #rest
00:49 yuciyuar joined #rest
02:15 baweaver joined #rest
03:16 fuzzyhorns joined #rest
03:41 igitoor joined #rest
03:45 igitoor joined #rest
05:42 baweaver joined #rest
06:53 huckleberry78 joined #rest
09:16 adaro joined #rest
09:39 adaro joined #rest
10:15 vanHoesel joined #rest
10:27 Left_Turn joined #rest
10:42 adaro joined #rest
13:04 riddle joined #rest
13:04 igitoor_ joined #rest
13:04 ChrisAnn_ joined #rest
13:10 yuciyuar joined #rest
13:13 angular_mike_ joined #rest
13:16 igitoor_ joined #rest
13:17 whartung_ joined #rest
13:21 EnergyCoffee joined #rest
13:22 EnergyCoffee joined #rest
13:24 EnergyCoffee joined #rest
13:28 benaiah joined #rest
13:35 spaceone joined #rest
13:35 _ollie joined #rest
13:43 yuciyuar joined #rest
14:07 vanHoesel joined #rest
15:09 warehouse13 joined #rest
15:16 _ollie joined #rest
15:17 baweaver joined #rest
15:20 pgicxplzs joined #rest
15:57 fsvehla joined #rest
16:09 fuzzyhorns joined #rest
16:14 _ollie joined #rest
16:54 fsvehla joined #rest
17:25 Darkman802 joined #rest
17:31 baweaver joined #rest
17:32 Darkman802 What's the best practice on returning a 404 when it could be for different resources. For example, a link such as /servers/{server_id}/users/{user_id} the 404 could either be for the server or user. I would assume you would just send a message in the body telling which one?
17:36 trygvis there is only one resource referenced
17:37 asdf` Darkman802, right; your 404 responses can contain possible actions just like your 200 responses. So, your 404 response can have a link to a 'server users' resource if that server exists, or to a 'all servers' resource if that server doesn't exist; you need to think if that is useful, or maybe if you can add more useful transitions there
17:38 trygvis I doubt you'll find many 404 responses with lots of info/links in it
17:38 trygvis as a machine you're usually limited to backtrack to where you got the URL from and try again or fail
17:39 trygvis going back is probably only useful if it came from the cache
17:41 Darkman802 Thanks, I'm new to rest, so I'm still trying to get my thinking inline with it.
18:14 quimrstorres joined #rest
18:36 quimrstorres joined #rest
19:08 CentaurWarchief guys, which code you would use for resource not found in third-party services? 404?
19:09 CentaurWarchief let's say that you're scraping stuff which might not exists if you've provided wrong data for the job
19:33 Darkman802 joined #rest
19:39 quimrstorres joined #rest
19:48 fuzzyhorns joined #rest
19:50 baweaver joined #rest
20:17 fsvehla joined #rest
20:33 fuzzyhorns joined #rest
21:19 CentaurWarchief left #rest
21:31 fuzzyhorns joined #rest
21:37 _ollie joined #rest
22:02 mamund joined #rest
22:10 quimrstorres joined #rest
22:18 baweaver joined #rest
22:18 impl joined #rest
22:21 dkm joined #rest
22:24 SupaHam joined #rest
22:46 baweaver joined #rest
22:59 vanHoesel joined #rest
23:21 quimrstorres joined #rest
23:33 fuzzyhorns joined #rest

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

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