Skip to content

Commit

Permalink
Lost the ModeShape HTTP API on the way to Spring, but here it comes b…
Browse files Browse the repository at this point in the history
…ack again, this time at /modeshape
  • Loading branch information
ajs6f committed Jan 28, 2013
1 parent a63e9ab commit f9e1f22
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/main/resources/rest.xml
Expand Up @@ -10,7 +10,7 @@

<import resource="classpath:META-INF/cxf/cxf.xml"/>
<import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml"/>

<import resource="classpath:/repo.xml"/>

<context:annotation-config/>
Expand All @@ -26,4 +26,15 @@
</jaxrs:serviceBeans>
</jaxrs:server>

<jaxrs:server address="/modeshape">
<jaxrs:serviceBeans>
<bean class="org.modeshape.web.jcr.rest.ModeShapeRestService"/>
</jaxrs:serviceBeans>
<jaxrs:providers>
<bean class="org.modeshape.web.jcr.rest.output.HtmlBodyWriter"/>
<bean class="org.modeshape.web.jcr.rest.output.JSONBodyWriter"/>
<bean class="org.modeshape.web.jcr.rest.output.TextBodyWriter"/>
</jaxrs:providers>
</jaxrs:server>

</beans>

0 comments on commit f9e1f22

Please sign in to comment.