Is there a solution to create JSON SMD for Spring 3 REST controller?

My colleague and I are creating an architecture for the rapid development of rich client applications using REST and JSON. Our server uses Spring 3 MVC and REST to provide REST services as Spring controllers. For non-standard REST calls, we would like to use service mapping descriptors (SMDs) to expose the contract of certain controllers:

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

SMD looks pretty unexpected on stage; is there any solution right now to create an SMD JSON file from a Spring 3 REST controller?

+3
source share
1

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>

CustomJsonHttpConverter AbstractHttpMessageConverter, MappingJacksonHttpMessageConverter.

0

Source: https://habr.com/ru/post/1778006/


All Articles