java - Is there a solution for generating a JSON SMD for a Spring 3 REST Controller? -


a colleague , setting architecture rapid development of rich client-side apps using rest , json. our server using spring 3's mvc , rest features expose rest services spring controllers. non-standard rest calls, we'd use service mapping descriptors (smd) expose contract of controllers:

http://groups.google.com/group/json-schema/web/service-mapping-description-proposal

smd looks new on scene; there solution out there right generating smd json file spring 3 rest controller?

you can define own httpmessageconverter:

<bean class="org.springframework.web.servlet.mvc.annotation.defaultannotationhandlermapping" /> <bean class="org.springframework.web.servlet.mvc.annotation.annotationmethodhandleradapter">     <property name="messageconverters">         <list>             <bean class="my.package.customjsonhttpconverter" />         </list>     </property> </bean> 

where customjsonhttpconverter extends abstracthttpmessageconverter, mappingjacksonhttpmessageconverter.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -