added a raspberrypi api annotation

GPrathap 9 years ago
parent 9b056c362e
commit 640f81cd41

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

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

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

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