Petals-BC-REST 1.2.0+

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (1)

View Page History
The service unit is configurable via its extensions in the jbi.xml file:
{code:lang=xml}
<jbi:jbi version="1.0"
xmlns:jbi="http://java.sun.com/xml/ns/jbi"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:cdk="http://petals.ow2.org/components/extensions/version-5"
xmlns:rest="http://petals.ow2.org/components/rest/version-1"

xmlns:inscription-cantine="http://municipalite.fr/demarches-administratives/inscription-cantine/1.0">

<jbi:services binding-component="true">

<jbi:consumes interface-name="inscription-cantine:inscriptionCantine">

<cdk:timeout />
<cdk:mep xsi:nil="true" />

<rest:service-base-path>/api</rest:service-base-path>
<rest:mapping>
<rest:operation name="inscription-cantine:new">
<!-- REST request part -->
<rest:http-method>POST</rest:http-method>
<rest:path-template>/demarches-administratives/cantine</rest:path-template>
<rest:http-body-from-json-virtual-root>new</rest:http-body-from-json-virtual-root>
<rest:incoming-payload>
<rest:transformation>
<rest:xsl>new-request.xsl</rest:xsl>
</rest:transformation>
</rest:incoming-payload>
<rest:xml-template>
<!-- TODO: Should be removed. Not needed here -->
<dummy />
</rest:xml-template>

<!-- REST request part -->
<rest:http-body-to-json-virtual-root>newResponse</rest:http-body-to-json-virtual-root>
</rest:operation>
<rest:operation name="inscription-cantine:validate">
<!-- REST request part -->
<rest:http-method>PUT</rest:http-method>
<rest:path-template>/demarches-administratives/cantine/{numero-demande}</rest:path-template>
<rest:http-body-from-json-virtual-root>validate</rest:http-body-from-json-virtual-root>
<rest:xml-template>
<!-- TODO: Should be removed. Not needed here -->
<dummy />
</rest:xml-template>

<!-- REST request part -->
<rest:http-body-to-json-virtual-root>validateResponse</rest:http-body-to-json-virtual-root>
</rest:operation>
</rest:mapping>
</jbi:consumes>
</jbi:services>
</jbi:jbi>
{code}