greptilian logo

IRC log for #rest, 2014-10-16

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
04:22 _ollie1 joined #rest
04:39 _ollie joined #rest
04:58 proteusguy joined #rest
06:02 fumanchu joined #rest
06:14 kype joined #rest
06:15 kype Hi im using the Spring framework. Im just wondering if theres any way to use REST to map a JSON into a java object?
06:52 krainboltgreene kype: REST, or HATEOS, is just a set of patterns and behaviors. It's not a thing to be applied to another thing.
06:53 krainboltgreene kype: Think of it like a set of game mechanics.
06:54 kype Hmm okay i understand
06:57 krainboltgreene kype: For what it's worth, you're looking for a JSON parser.
06:58 kype krainboltgreene: Yeah ive got one. I followed the example but i keep getting 406 response, hence i thought maybe there was some other lib required
06:58 krainboltgreene kype: I think you're confused. The HTTP library you're using is returning 406.
06:59 krainboltgreene The JSON parser is a library that turns JSON text into native objects.
07:00 kype Yeah im just saying my java rest service is returing 406
07:02 kype So i was hoping for some help with JSON parsing with REST, since working without JSON has been successfull for me
08:03 _ollie kype: Spring supports Jackson to marshal objects into JSON and back…
08:03 _ollie also have a look at Spring HATEOAS for support for hypermedia elements (links, HAL, ALPS etc.)
08:04 kype _ollie: Yes am using jackson to parse it.
08:09 kype Have you worked with jackson? Unrecognized field \"city\"   <--- is that an encoding error?
08:09 kype It should be Unrecognized field "city"
08:11 _ollie the Jackson defaults aren't the best ones… it barks at you if you receive jSON that contains fields not contained in your object model…
08:12 _ollie objectMapper.configure(DeserializationCo​nfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES, false);
08:15 kype I have all the fields in my model
09:16 mezod joined #rest
10:00 blahdeblah_ joined #rest
11:07 Left_Turn joined #rest
11:17 philbot joined #rest
11:17 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
11:47 mgomezch joined #rest
12:11 shrink0r joined #rest
12:46 interop_madness joined #rest
13:32 foist joined #rest
14:20 Mxyzpltk joined #rest
15:07 fumanchu joined #rest
15:42 fumanchu_ joined #rest
15:57 digitalsanctum joined #rest
16:13 foist joined #rest
16:18 fumanchu joined #rest
16:20 krainboltgreene left #rest
16:33 fumanchu_ joined #rest
16:42 Mxyzpltk joined #rest
16:48 fumanchu joined #rest
17:11 danfinch joined #rest
17:36 digitals_ joined #rest
18:01 ph88 joined #rest
18:07 digitalsanctum joined #rest
18:16 tr3online joined #rest
18:39 shrink0r joined #rest
19:20 foist joined #rest
19:33 shrink0r1 joined #rest
19:37 shrink0r joined #rest
19:42 tr3online joined #rest
19:49 shrink0r joined #rest
20:24 tr3online joined #rest
21:00 tr3online joined #rest
21:11 _ollie joined #rest
22:30 shrink0r joined #rest
23:49 begriffs joined #rest

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

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