added a raspberrypi api annotation

GPrathap 9 years ago
parent 9b056c362e
commit 640f81cd41

@ -240,9 +240,7 @@
<configuration>
<webXml>src/main/webapp/WEB-INF/web.xml</webXml>
<warName>drone_analyzer</warName>
<!-- <outputDirectory>/home/geesara/wso2/products/wso2iot-1.0.0-SNAPSHOT/repository/deployment/server/webapps</outputDirectory>
-->
</configuration>
</configuration>
</plugin>
</plugins>
</build>

@ -122,6 +122,11 @@
<artifactId>org.wso2.carbon.device.mgt.analytics</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.wso2.carbon.devicemgt</groupId>
<artifactId>org.wso2.carbon.apimgt.annotations</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

@ -21,6 +21,8 @@ package org.wso2.carbon.device.mgt.iot.raspberrypi.service;
import org.apache.commons.io.FileUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.apimgt.annotations.api.API;
import org.wso2.carbon.apimgt.annotations.device.DeviceType;
import org.wso2.carbon.device.mgt.common.Device;
import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
import org.wso2.carbon.device.mgt.common.DeviceManagementException;
@ -68,7 +70,8 @@ import java.util.List;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
@Path("/RaspberryPiDeviceManager")
@API( name="raspberrypi", version="1.0.0", context="/raspberrypi")
@DeviceType( value = "raspberrypi")
public class RaspberryPiService {
private static Log log = LogFactory.getLog(RaspberryPiService.class);

@ -2,7 +2,7 @@
"deviceType": {
"label": "RaspberryPi",
"category": "iot",
"downloadAgentUri": "RaspberryPiDeviceManager/manager/device/raspberrypi/download",
"downloadAgentLinkGenUri" : "RaspberryPiDeviceManager/manager/device/raspberrypi/generate_link"
"downloadAgentUri": "/manager/device/raspberrypi/download",
"downloadAgentLinkGenUri" : "/manager/device/raspberrypi/generate_link"
}
}
Loading…
Cancel
Save