|
|
@ -42,3 +42,52 @@
|
|
|
|
<handler class="org.wso2.carbon.apimgt.gateway.handlers.ext.APIManagerExtensionHandler"/>
|
|
|
|
<handler class="org.wso2.carbon.apimgt.gateway.handlers.ext.APIManagerExtensionHandler"/>
|
|
|
|
</handlers>
|
|
|
|
</handlers>
|
|
|
|
</api>
|
|
|
|
</api>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?><api xmlns="http://ws.apache.org/ns/synapse" name="admin--Windows Discovery Service" context="/api/device-mgt/windows/v1.0/discovery/post/1.0.0" version="1.0.0" version-type="context">
|
|
|
|
|
|
|
|
<resource methods="POST" url-mapping="/*" faultSequence="fault">
|
|
|
|
|
|
|
|
<inSequence>
|
|
|
|
|
|
|
|
<property name="api.ut.backendRequestTime" expression="get-property('SYSTEM_TIME')"/>
|
|
|
|
|
|
|
|
<property name="AM_KEY_TYPE" value="PRODUCTION" scope="default"/>
|
|
|
|
|
|
|
|
<filter source="$ctx:AM_KEY_TYPE" regex="PRODUCTION">
|
|
|
|
|
|
|
|
<then>
|
|
|
|
|
|
|
|
<send>
|
|
|
|
|
|
|
|
<endpoint name="admin--Windows Discovery Service_APIproductionEndpoint_0">
|
|
|
|
|
|
|
|
<http uri-template="https://localhost:9443/api/device-mgt/windows/v1.0/discovery/post"/>
|
|
|
|
|
|
|
|
<property name="ENDPOINT_ADDRESS" value="https://localhost:9443/api/device-mgt/windows/v1.0/discovery/post"/>
|
|
|
|
|
|
|
|
</endpoint>
|
|
|
|
|
|
|
|
</send>
|
|
|
|
|
|
|
|
</then>
|
|
|
|
|
|
|
|
<else>
|
|
|
|
|
|
|
|
<sequence key="_sandbox_key_error_"/>
|
|
|
|
|
|
|
|
</else>
|
|
|
|
|
|
|
|
</filter>
|
|
|
|
|
|
|
|
</inSequence>
|
|
|
|
|
|
|
|
<outSequence>
|
|
|
|
|
|
|
|
<class name="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtResponseHandler"/>
|
|
|
|
|
|
|
|
<property name="FORCE_HTTP_CONTENT_LENGTH" scope="axis2" value="true"/>
|
|
|
|
|
|
|
|
<property name="COPY_CONTENT_LENGTH_FROM_INCOMING" value="true" scope="axis2"/>
|
|
|
|
|
|
|
|
<send/>
|
|
|
|
|
|
|
|
</outSequence>
|
|
|
|
|
|
|
|
</resource>
|
|
|
|
|
|
|
|
<handlers>
|
|
|
|
|
|
|
|
<handler class="org.wso2.carbon.apimgt.gateway.handlers.common.APIMgtLatencyStatsHandler"/>
|
|
|
|
|
|
|
|
<handler class="org.wso2.carbon.apimgt.gateway.handlers.security.CORSRequestHandler">
|
|
|
|
|
|
|
|
<property name="apiImplementationType" value="ENDPOINT"/>
|
|
|
|
|
|
|
|
</handler>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
|
|
|
<handler class="org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler"/>
|
|
|
|
|
|
|
|
<handler class="org.wso2.carbon.apimgt.gateway.handlers.throttling.APIThrottleHandler">
|
|
|
|
|
|
|
|
<property name="policyKey" value="gov:/apimgt/applicationdata/tiers.xml"/>
|
|
|
|
|
|
|
|
<property name="policyKeyApplication" value="gov:/apimgt/applicationdata/app-tiers.xml"/>
|
|
|
|
|
|
|
|
<property name="id" value="A"/>
|
|
|
|
|
|
|
|
<property name="policyKeyResource" value="gov:/apimgt/applicationdata/res-tiers.xml"/>
|
|
|
|
|
|
|
|
</handler>
|
|
|
|
|
|
|
|
<handler class="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtUsageHandler"/>
|
|
|
|
|
|
|
|
<handler class="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtGoogleAnalyticsTrackingHandler">
|
|
|
|
|
|
|
|
<property name="configKey" value="gov:/apimgt/statistics/ga-config.xml"/>
|
|
|
|
|
|
|
|
</handler>
|
|
|
|
|
|
|
|
<handler class="org.wso2.carbon.apimgt.gateway.handlers.ext.APIManagerExtensionHandler"/>
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
</handlers>
|
|
|
|
|
|
|
|
</api>
|
|
|
|