1 <rests xmlns="http://camel.apache.org/schema/spring">
3 <get uri="/v1/healthcheck" produces="application/json"
4 outType="org.onap.clamp.clds.model.CldsHealthCheck">
7 <method ref="org.onap.clamp.clds.service.CldsHealthcheckService"
8 method="gethealthcheck()" />
11 <simple> ${body} == 'NOT-OK'</simple>
12 <setHeader headerName="CamelHttpResponseCode">
13 <constant>404</constant>
15 <log loggingLevel="ERROR" message="HealthCheck failed" />
20 <get uri="/v1/user/getUser" produces="text/plain">
21 <to uri="bean:org.onap.clamp.authorization.UserService?method=getUser()" />