greptilian logo

IRC log for #rest, 2015-02-03

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:02 jackalista joined #rest
00:43 bigbluehat joined #rest
01:05 huckleberry78 joined #rest
01:13 tmoore_ joined #rest
01:17 lebster joined #rest
01:19 ramsey joined #rest
01:22 rickharrison joined #rest
01:23 talios joined #rest
01:24 gluegadget joined #rest
01:47 shrink0r_ joined #rest
02:01 shrink0r joined #rest
02:04 Angry_Roy_Fieldi joined #rest
02:21 MLMitch joined #rest
04:50 lemur joined #rest
04:50 proteusguy joined #rest
05:12 tr3onlin_ joined #rest
06:23 tr3online joined #rest
06:28 _ollie joined #rest
06:32 imanc_ joined #rest
06:43 tr3onlin_ joined #rest
07:01 lemur joined #rest
07:40 rosstuck joined #rest
07:55 quimrstorres joined #rest
07:57 talios joined #rest
08:18 shrink0r joined #rest
08:29 Andre-B joined #rest
08:38 quimrstorres joined #rest
08:53 quimrstorres joined #rest
09:18 mezod joined #rest
09:39 Andre-B joined #rest
09:52 graste joined #rest
09:54 Left_Turn joined #rest
10:07 shrink0r joined #rest
10:07 quimrstorres joined #rest
10:13 martinfilliau joined #rest
10:13 quimrstorres joined #rest
10:35 martinfi_ joined #rest
10:36 martinf__ joined #rest
10:37 martin___ joined #rest
10:57 mezod joined #rest
11:13 shrink0r joined #rest
11:41 BrunoC joined #rest
11:55 Left_Turn joined #rest
12:02 martinfilliau joined #rest
12:04 martinfi_ joined #rest
12:13 quimrstorres joined #rest
12:20 BrunoC hello, what do you recommend to different content between countries? I've the same product, but I the price and name is different between countries, should I that information on the URI?
12:48 blongden You could have price/name resources hanging off the product. You could use link relations to identify the country specific price/name... or just allow multiple prices/names per product (split out by country). I wouldn't put it in the URI as that would mean products would be cached per country even though they're really the same thing.
12:49 fumanchu_ joined #rest
12:56 BrunoCosta joined #rest
12:57 proteusguy joined #rest
13:59 DrCode joined #rest
14:32 BrunoCosta thanks blongden ;)
14:33 quimrstorres joined #rest
14:36 BrunoCosta do you mean something like this
14:36 BrunoCosta https://gist.github.com/BrunoMVPCosta/48fe1cf33c86cdac3197
14:43 blongden Essentially, yes. Other options could be to use the Accept-Language headers in your request to localise the product name, and keep the concept of translation and currency separate (keep prices in many currencies on the product itself, and translate based on Accept-Language header.
14:43 blongden So many options. :D
14:44 aGHz joined #rest
14:46 BrunoCosta Yes, like, Accept-language:"en-US", just give the description of "en-US". And change the list to be a single value
14:46 BrunoCosta "description": "american english",
14:46 BrunoCosta right?
14:47 blongden Yup
14:47 BrunoCosta its seems to me very useful separate the concept of translation from the concept of currency
14:47 blongden That would let you localise other fields in the future too.
14:55 BrunoCosta yes
15:03 nkoza joined #rest
15:13 proteusguy joined #rest
15:21 quimrsto_ joined #rest
15:25 quimrstorres joined #rest
15:26 saml do you like json schema? http://json-schema.org/
15:27 Jarda I use it for validation
15:27 saml which library do you use?
15:28 saml http://geraintluff.github.io/tv4/ ?
15:28 Jarda I also expose the schemas in API documentation
15:28 saml swagger?
15:28 Jarda I use this for validating the request payloads: https://github.com/tdegrunt/jsonschema
15:28 Jarda and I use raml (http://raml.org/) to document my APIs
15:49 ironChicken joined #rest
15:50 quimrstorres joined #rest
16:02 quimrstorres joined #rest
16:10 quimrstorres joined #rest
16:27 quimrstorres joined #rest
16:31 quimrstorres joined #rest
16:38 quimrstorres joined #rest
16:44 apennebaker-ni joined #rest
16:45 apennebaker-ni Do any Web browser HTTP request/response debugger extensions support exporting or importing request data in terms of a curl command?
16:56 adaro joined #rest
17:03 trygvis apennebaker-ni: chrome
17:04 pdurbin trygvis: natively or with a plugin?
17:06 trygvis natively, just right click on any request and do "copy as cURL"
17:08 lemur joined #rest
17:18 shrink0r joined #rest
17:48 Andre-B joined #rest
17:56 begriffs joined #rest
17:56 pdurbin huh. sure enough. neat!
19:04 fumanchu joined #rest
19:07 DrCode joined #rest
19:13 quimrstorres joined #rest
19:33 shrink0r joined #rest
19:45 Mxyzpltk joined #rest
19:47 begriffs joined #rest
19:48 quimrsto_ joined #rest
20:19 begriffs joined #rest
20:26 Mxyzpltk joined #rest
20:33 adaro joined #rest
20:42 shrink0r_ joined #rest
20:44 shrink0r joined #rest
20:46 shrink0r_ joined #rest
20:54 graste joined #rest
21:21 talios joined #rest
21:53 shrink0r joined #rest
23:11 BrunoCosta joined #rest
23:17 ramsey joined #rest
23:20 rickharrison joined #rest
23:20 shrink0r joined #rest
23:20 ramsey joined #rest
23:20 rickharrison joined #rest
23:25 lebster joined #rest
23:27 gluegadget joined #rest
23:28 tmoore_ joined #rest
23:49 Angry_Roy_Fieldi joined #rest

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

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