<?xml version="1.0" encoding="UTF-8"?>
<api context="/registerstudent" name="StudentRegistrationAPI" xmlns="http://ws.apache.org/ns/synapse">
    <resource methods="POST">
        <inSequence>
            <log description="Log request payload" level="full"/>
            <property description="Initiate asynchronous mediation flow" name="OUT_ONLY" scope="default" type="STRING" value="true"/>
            <property description="Generate 202 response from mediation flow" name="FORCE_SC_ACCEPTED" scope="axis2" type="STRING" value="true"/>
            <send description="Publish request payload to JMS endpoint">
                <endpoint key="StudentQueueEP"/>
            </send>
        </inSequence>
        <outSequence/>
        <faultSequence/>
    </resource>
</api>
