greptilian logo

IRC log for #rest, 2014-12-06

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:43 shrink0r joined #rest
00:45 shrink0r_ joined #rest
01:09 shrink0r joined #rest
01:50 shrink0r_ joined #rest
02:04 sulky joined #rest
02:12 shrink0r joined #rest
02:14 shrink0r joined #rest
02:36 shrink0r_ joined #rest
02:37 shrink0r joined #rest
03:08 jangid joined #rest
04:08 lemur joined #rest
04:14 jangid joined #rest
04:19 huckleberry78 joined #rest
04:39 jangid left #rest
05:06 shrink0r joined #rest
06:55 shrink0r joined #rest
09:55 proteusguy joined #rest
09:57 shrink0r joined #rest
10:22 lemur joined #rest
10:59 mezod joined #rest
11:23 Left_Turn joined #rest
11:35 shrink0r_ joined #rest
11:36 mezod joined #rest
11:55 shrink0r joined #rest
11:56 zhris joined #rest
11:59 zhris hello, I am creating a non javascript website that roughly sticks to the principals of rest, upon creating a resource if there is an error in validation, I am redirecting back to the create page and plan on repopulating the form with supplied info and error messages. Other than carrying the response in url variables, would it be ok to store the POST response in a session before redirect, so it can be easily fetched on GET?
12:21 Left_Turn joined #rest
12:27 proteusguy joined #rest
12:51 ph88 joined #rest
12:52 codeisgreat joined #rest
12:58 codeisgreat joined #rest
13:37 pdurbin zhris: as you repopulate the form, isn't the supplied info already available to you in your server-side language?
14:22 graste joined #rest
14:52 zhris joined #rest
14:52 zhris pdurbin, apologies for late reply
14:53 zhris I'm following the pattern of POST -> REDIRECT -> GET
14:53 zhris therefore the information regarding validation was presented at the POST stage before the redirect
14:53 zhris with javascript thsi wouldn't be a problem, but since I'm avoiding javascript its a headache
14:56 shrink0r joined #rest
15:10 pdurbin zhris: are you using Java Server Faces (JSF)?
15:14 zhris I'm not, its a custom framework written in Perl
15:14 pdurbin ah. ok. I'm looking at http://en.wikipedia.org/wiki/Post/Redirect/Get
15:16 zhris interesting, I hadn't come across it
15:16 zhris Discusses its use for duplicate submission
15:17 pdurbin does this help at at? http://programmers.stackexchange.com/questions/185363/post-redirect-get-with-invalid-form-submission
15:19 zhris thanks for that, it basically goes against what I thought would be a good pattern and shows an alterantive
15:19 zhris its something to think about
15:20 zhris one issue i have was that my form lives on say /products/create
15:20 zhris which would post to /products
15:20 zhris i need to redirect to redisplay the form back under /products/create
15:22 pdurbin I'm thinking about using PRG with JSF because JSF loves to do POST for everything. Right now I'm going against the grain a bit because I'm trying to use GET. My use case is supporting bookmarkable searches (i.e. query plus facet(s) clicked).
15:25 zhris since I have built my framework from scratch I can luckily handle anything in whatever way I like with ease.
15:25 pdurbin cool
15:25 * pdurbin likes Perl
15:25 zhris ohh you do
15:25 zhris me too :D
15:26 zhris there are lots of frameworks available, but this is a good learning experience and I have a vision which the existing ones didn't fully support
15:34 zhris hey, thanks again, the links you provided have given me some ideas and some terms i can further search from if need be.
15:38 pezra joined #rest
15:46 pdurbin zhris: oh sure. good luck
16:02 quimrstorres joined #rest
16:15 quimrstorres joined #rest
16:31 quimrstorres joined #rest
16:50 quimrstorres joined #rest
17:04 jberger joined #rest
17:08 jberger left #rest
17:13 quimrstorres joined #rest
17:24 ruibritopt joined #rest
17:25 ruibritopt Building a REST web service to manage some AWS resources like S3 and EC2. Has anyone implemented user login in their App with LOGIN WITH AMAZON?
17:51 adaro joined #rest
18:40 marcoslamuria joined #rest
19:00 mezod hi guys, I have just cloned the code for an API I was deving on windows, now on a mac, and I keep getting bad requests with Postman. I have defined a vhost the same way I did it for windows. ANy idea of what may I be doing wrong or how to find out?
19:00 mezod This is the access log: 127.0.0.1 - - [06/Dec/2014:19:25:49 +0100] "GET /users HTTP/1.1" 400 226
19:03 shrink0r joined #rest
20:07 shrink0r joined #rest
20:14 quimrstorres joined #rest
20:26 quimrstorres joined #rest
20:42 tr3online joined #rest
20:55 lemur joined #rest
20:56 dEPy joined #rest
20:57 marcoslamuria joined #rest
21:01 pezra joined #rest
21:16 shrink0r_ joined #rest
21:49 fumanchu_ joined #rest
22:22 htowngangsta joined #rest
22:25 quimrstorres joined #rest
23:36 fumanchu joined #rest
23:40 lemur joined #rest
23:42 shrink0r joined #rest

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

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