Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

[12:35:21 CST(-0600)] <TonyUnicon> thanks for that info Dan, I think it answers my question

[12:39:14 CST(-0600)] <TonyUnicon> What is not obvious to me is how the response JSON gets built, for example, I do not know the data_index that object status will get mapped to

[12:46:32 CST(-0600)] <TonyUnicon> is it by convention? is it always the field name?

[12:59:39 CST(-0600)] <dmccallum54> the API controllers are all tagged with @ResponseBody, which means the serialization will be handled by a HttpMessageConverter selected by Spring

[12:59:55 CST(-0600)] <dmccallum54> in our case it's almost always going to select MappingJacksonHttpMessageConverter

[13:00:06 CST(-0600)] <dmccallum54> so serialization will be whatever you get with Jackson by default

[13:00:27 CST(-0600)] <dmccallum54> easiest way to modify that behavior on a fine-grained basis would be to add Jackson annotations to the TOs in question

  • No labels