forked from community/device-mgt-core
parent
a12be72a13
commit
d5c85980e1
@ -1,3 +1,5 @@
|
|||||||
instructions.configure = \
|
instructions.configure = \
|
||||||
org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../deployment/server/webapps/);\
|
org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../deployment/server/webapps/);\
|
||||||
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.apimgt.application.extension_${feature.version}/webapps/,target:${installFolder}/../../deployment/server/webapps/,overwrite:true);\
|
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.apimgt.application.extension_${feature.version}/webapps/,target:${installFolder}/../../deployment/server/webapps/,overwrite:true);\
|
||||||
|
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.apimgt.application.extension_${feature.version}/synapse-configs/default/api/_API_Application_Registration_.xml,target:${installFolder}/../../deployment/server/synapse-configs/default/api/_API_Application_Registration_.xml,overwrite:true);\
|
||||||
|
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.apimgt.application.extension_${feature.version}/synapse-configs/default/sequences/_api_registration_fault_.xml,target:${installFolder}/../../deployment/server/synapse-configs/default/sequences/_api_registration_fault_.xml,overwrite:true);\
|
||||||
|
@ -0,0 +1,63 @@
|
|||||||
|
<api xmlns="http://ws.apache.org/ns/synapse" name="_WSO2APIRegistrationApplication_" context="/api-application-registration">
|
||||||
|
<resource methods="POST" url-mapping="/register/tenants" faultSequence="_api_registration_fault_">
|
||||||
|
<inSequence>
|
||||||
|
<property name="uri.var.portnum" expression="get-property('system','iot.core.https.port')"/>
|
||||||
|
<property name="uri.var.hostname" expression="get-property('system','iot.core.host')"/>
|
||||||
|
<send>
|
||||||
|
<endpoint>
|
||||||
|
<http uri-template="https://{uri.var.hostname}:{uri.var.portnum}/api-application-registration">
|
||||||
|
<timeout>
|
||||||
|
<duration>60000</duration>
|
||||||
|
<responseAction>fault</responseAction>
|
||||||
|
</timeout>
|
||||||
|
</http>
|
||||||
|
</endpoint>
|
||||||
|
</send>
|
||||||
|
</inSequence>
|
||||||
|
<outSequence>
|
||||||
|
<send/>
|
||||||
|
</outSequence>
|
||||||
|
</resource>
|
||||||
|
<resource methods="POST" url-mapping="/register" faultSequence="_api_registration_fault_">
|
||||||
|
<inSequence>
|
||||||
|
<property name="uri.var.portnum" expression="get-property('system','iot.core.https.port')"/>
|
||||||
|
<property name="uri.var.hostname" expression="get-property('system','iot.core.host')"/>
|
||||||
|
<send>
|
||||||
|
<endpoint>
|
||||||
|
<http uri-template="https://{uri.var.hostname}:{uri.var.portnum}/api-application-registration">
|
||||||
|
<timeout>
|
||||||
|
<duration>60000</duration>
|
||||||
|
<responseAction>fault</responseAction>
|
||||||
|
</timeout>
|
||||||
|
</http>
|
||||||
|
</endpoint>
|
||||||
|
</send>
|
||||||
|
</inSequence>
|
||||||
|
<outSequence>
|
||||||
|
<send/>
|
||||||
|
</outSequence>
|
||||||
|
</resource>
|
||||||
|
<resource methods="DELETE" url-mapping="/unregister" faultSequence="_api_registration_fault_">
|
||||||
|
<inSequence>
|
||||||
|
<property name="uri.var.portnum" expression="get-property('system','iot.core.https.port')"/>
|
||||||
|
<property name="uri.var.hostname" expression="get-property('system','iot.core.host')"/>
|
||||||
|
<send>
|
||||||
|
<endpoint>
|
||||||
|
<http uri-template="https://{uri.var.hostname}:{uri.var.portnum}/api-application-registration">
|
||||||
|
<timeout>
|
||||||
|
<duration>60000</duration>
|
||||||
|
<responseAction>fault</responseAction>
|
||||||
|
</timeout>
|
||||||
|
</http>
|
||||||
|
</endpoint>
|
||||||
|
</send>
|
||||||
|
</inSequence>
|
||||||
|
<outSequence>
|
||||||
|
<send/>
|
||||||
|
</outSequence>
|
||||||
|
</resource>
|
||||||
|
<handlers>
|
||||||
|
<handler class="org.wso2.carbon.apimgt.gateway.handlers.ext.APIManagerCacheExtensionHandler"/>
|
||||||
|
<handler class="org.wso2.carbon.apimgt.gateway.handlers.common.SynapsePropertiesHandler"/>
|
||||||
|
</handlers>
|
||||||
|
</api>
|
@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||||
|
<!--
|
||||||
|
~ Copyright (c) 2016, WSO2 Inc. (http://wso2.com) All Rights Reserved.
|
||||||
|
~
|
||||||
|
~ WSO2 Inc. licenses this file to you under the Apache License,
|
||||||
|
~ Version 2.0 (the "License"); you may not use this file except
|
||||||
|
~ in compliance with the License.
|
||||||
|
~ You may obtain a copy of the License at
|
||||||
|
~
|
||||||
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
~
|
||||||
|
~ Unless required by applicable law or agreed to in writing,
|
||||||
|
~ software distributed under the License is distributed on an
|
||||||
|
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
~ KIND, either express or implied. See the License for the
|
||||||
|
~ specific language governing permissions and limitations
|
||||||
|
~ under the License.
|
||||||
|
-->
|
||||||
|
<sequence xmlns="http://ws.apache.org/ns/synapse" name="_api_registration_fault_">
|
||||||
|
<property name="ERROR_MESSAGE" value="Error occurred while invoking api application registration endpoint"/>
|
||||||
|
<sequence key="fault"/>
|
||||||
|
</sequence>
|
@ -0,0 +1,65 @@
|
|||||||
|
<!--
|
||||||
|
~ Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
||||||
|
~
|
||||||
|
~ WSO2 Inc. licenses this file to you under the Apache License,
|
||||||
|
~ Version 2.0 (the "License"); you may not use this file except
|
||||||
|
~ in compliance with the License.
|
||||||
|
~ You may obtain a copy of the License at
|
||||||
|
~
|
||||||
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
~
|
||||||
|
~ Unless required by applicable law or agreed to in writing,
|
||||||
|
~ software distributed under the License is distributed on an
|
||||||
|
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
~ KIND, either express or implied. See the License for the
|
||||||
|
~ specific language governing permissions and limitations
|
||||||
|
~ under the License.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<datasources-configuration xmlns:svns="http://org.wso2.securevault/configuration">
|
||||||
|
<providers>
|
||||||
|
<provider>org.wso2.carbon.ndatasource.rdbms.RDBMSDataSourceReader</provider>
|
||||||
|
</providers>
|
||||||
|
<datasources>
|
||||||
|
<datasource>
|
||||||
|
<name>DM_DS</name>
|
||||||
|
<description>The datasource used for CDM</description>
|
||||||
|
<jndiConfig>
|
||||||
|
<name>jdbc/DM_DS</name>
|
||||||
|
</jndiConfig>
|
||||||
|
<definition type="RDBMS">
|
||||||
|
<configuration>
|
||||||
|
<url>jdbc:h2:./repository/database/WSO2DM_DB;DB_CLOSE_ON_EXIT=FALSE;AUTO_SERVER=TRUE;LOCK_TIMEOUT=60000</url>
|
||||||
|
<username>wso2carbon</username>
|
||||||
|
<password>wso2carbon</password>
|
||||||
|
<driverClassName>org.h2.Driver</driverClassName>
|
||||||
|
<maxActive>50</maxActive>
|
||||||
|
<maxWait>60000</maxWait>
|
||||||
|
<testOnBorrow>true</testOnBorrow>
|
||||||
|
<validationQuery>SELECT 1</validationQuery>
|
||||||
|
<validationInterval>30000</validationInterval>
|
||||||
|
</configuration>
|
||||||
|
</definition>
|
||||||
|
</datasource>
|
||||||
|
<datasource>
|
||||||
|
<name>DM_ARCHIVAL_DS</name>
|
||||||
|
<description>The archival datasource used for CDM</description>
|
||||||
|
<jndiConfig>
|
||||||
|
<name>jdbc/DM_ARCHIVAL_DS</name>
|
||||||
|
</jndiConfig>
|
||||||
|
<definition type="RDBMS">
|
||||||
|
<configuration>
|
||||||
|
<url>jdbc:h2:./repository/database/WSO2DM_ARCHIVAL_DS;DB_CLOSE_ON_EXIT=FALSE</url>
|
||||||
|
<username>wso2carbon</username>
|
||||||
|
<password>wso2carbon</password>
|
||||||
|
<driverClassName>org.h2.Driver</driverClassName>
|
||||||
|
<maxActive>50</maxActive>
|
||||||
|
<maxWait>60000</maxWait>
|
||||||
|
<testOnBorrow>true</testOnBorrow>
|
||||||
|
<validationQuery>SELECT 1</validationQuery>
|
||||||
|
<validationInterval>30000</validationInterval>
|
||||||
|
</configuration>
|
||||||
|
</definition>
|
||||||
|
</datasource>
|
||||||
|
</datasources>
|
||||||
|
</datasources-configuration>
|
Loading…
Reference in new issue