<?xml version="1.0" encoding="UTF-8"?>
<api context="/first" name="firstApi" version="1.2.4" version-type="context" xmlns="http://ws.apache.org/ns/synapse">
    <resource methods="POST" url-mapping="/addUser">
        <inSequence>
            <log>
                <property name="test" value="this is add user post first api"/>
            </log>
        </inSequence>
        <outSequence/>
        <faultSequence/>
    </resource>
    <resource methods="GET" uri-template="/getUser/{userId}/{userName}">
        <inSequence>
            <!--This is generated API skeleton.-->
            <property expression="get-property('uri.var.userId')" name="userId" scope="default" type="STRING"/>
            <property expression="get-property('uri.var.userName')" name="userName" scope="default" type="STRING"/>
            <!--Business Logic Goes Here-->
            <payloadFactory media-type="json">
                <format>{"Response" : "Sample Response"}</format>
                <args/>
            </payloadFactory>
            <loopback/>
        </inSequence>
        <outSequence>
            <respond/>
        </outSequence>
        <faultSequence/>
    </resource>
    <resource methods="POST" url-mapping="/newPath">
        <inSequence>
            <!--This is generated API skeleton.-->
            <!--Business Logic Goes Here-->
            <payloadFactory media-type="json">
                <format>{"Response" : "Sample Response"}</format>
                <args/>
            </payloadFactory>
            <loopback/>
        </inSequence>
        <outSequence>
            <respond/>
        </outSequence>
        <faultSequence/>
    </resource>
    <resource methods="PUT">
        <inSequence>
            <log>
                <property name="test" value="this is the default resource 1st api"/>
            </log>
        </inSequence>
        <outSequence/>
        <faultSequence/>
    </resource>
</api>
