revert-dabc3590
ayyoob 9 years ago
commit 2778e1c1ef

@ -21,7 +21,6 @@ public class AndroidSenseConstants {
public final static String DEVICE_TYPE = "android_sense"; public final static String DEVICE_TYPE = "android_sense";
public final static String DEVICE_PLUGIN_DEVICE_NAME = "DEVICE_NAME"; public final static String DEVICE_PLUGIN_DEVICE_NAME = "DEVICE_NAME";
public final static String DEVICE_PLUGIN_DEVICE_ID = "ANDROID_DEVICE_ID"; public final static String DEVICE_PLUGIN_DEVICE_ID = "ANDROID_DEVICE_ID";
public final static String DEVICE_TYPE_PROVIDER_DOMAIN = "carbon.super";
//Android Sense Stream definitions. //Android Sense Stream definitions.
public static final String ACCELEROMETER_STREAM_DEFINITION = "org.wso2.iot.devices.accelerometer"; public static final String ACCELEROMETER_STREAM_DEFINITION = "org.wso2.iot.devices.accelerometer";
public static final String BATTERY_STREAM_DEFINITION = "org.wso2.iot.devices.battery"; public static final String BATTERY_STREAM_DEFINITION = "org.wso2.iot.devices.battery";

@ -28,153 +28,153 @@
<PermissionConfiguration> <PermissionConfiguration>
<APIVersion></APIVersion> <APIVersion></APIVersion>
<!-- Device related APIs --> <!-- Device related APIs -->
<Permission>
<Permission>
<name>add sensor information</name> <name>add sensor information</name>
<path>/login</path> <path>/device-mgt/user/device/sensors</path>
<url>/device/sensors</url> <url>/device/sensors</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>android_sense_device</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Get light information</name> <name>Get light information</name>
<path>/login</path> <path>/device-mgt/user/device/sensors/light</path>
<url>/device/*/sensors/light</url> <url>/device/*/sensors/light</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>android_sense_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Get battery information</name> <name>Get battery information</name>
<path>/login</path> <path>/device-mgt/user/device/sensors/battery</path>
<url>/device/*/sensors/battery</url> <url>/device/*/sensors/battery</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>android_sense_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Get gps information</name> <name>Get gps information</name>
<path>/login</path> <path>/device-mgt/user/device/sensors/gps</path>
<url>/device/*/sensors/gps</url> <url>/device/*/sensors/gps</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>android_sense_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Get magnetic information</name> <name>Get magnetic information</name>
<path>/login</path> <path>/device-mgt/user/device/sensors/magnetic</path>
<url>/device/*/sensors/magnetic</url> <url>/device/*/sensors/magnetic</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>android_sense_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Get accelerometer information</name> <name>Get accelerometer information</name>
<path>/login</path> <path>/device-mgt/user/device/accelerometer</path>
<url>/device/*/sensors/accelerometer</url> <url>/device/*/sensors/accelerometer</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>android_sense_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Get rotation information</name> <name>Get rotation information</name>
<path>/login</path> <path>/device-mgt/user/device/sensors/rotation</path>
<url>/device/*/sensors/rotation</url> <url>/device/*/sensors/rotation</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>android_sense_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Get proximity information</name> <name>Get proximity information</name>
<path>/login</path> <path>/device-mgt/user/device/sensors/proximity</path>
<url>/device/*/sensors/proximity</url> <url>/device/*/sensors/proximity</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>android_sense_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Get gyroscope information</name> <name>Get gyroscope information</name>
<path>/login</path> <path>/device-mgt/user/device/gyroscope</path>
<url>/device/*/sensors/gyroscope</url> <url>/device/*/sensors/gyroscope</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>android_sense_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Get pressure information</name> <name>Get pressure information</name>
<path>/login</path> <path>/device-mgt/user/device/sensors/pressure</path>
<url>/device/*/sensors/pressure</url> <url>/device/*/sensors/pressure</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>android_sense_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Get gravity information</name> <name>Get gravity information</name>
<path>/login</path> <path>/device-mgt/user/device/sensors/gravity</path>
<url>/device/*/sensors/gravity</url> <url>/device/*/sensors/gravity</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>android_sense_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Get words information</name> <name>Get words information</name>
<path>/login</path> <path>/device-mgt/user/device/sensors/words</path>
<url>/device/*/sensors/words</url> <url>/device/*/sensors/words</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>android_sense_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Get words information</name> <name>Get words information</name>
<path>/login</path> <path>/device-mgt/user/device/sensors/word</path>
<url>/device/*/sensors/words</url> <url>/device/*/sensors/words</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>android_sense_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>set word threshold information</name> <name>set word threshold information</name>
<path>/login</path> <path>/device-mgt/user/device/sensors/words/threshold</path>
<url>/device/*/sensors/words/threshold</url> <url>/device/*/sensors/words/threshold</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>android_sense_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>delete words</name> <name>delete words</name>
<path>/login</path> <path>/device-mgt/user/device/sensors/words</path>
<url>/device/*/sensors/words</url> <url>/device/*/sensors/words</url>
<method>DELETE</method> <method>DELETE</method>
<scope></scope> <scope>android_sense_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>get device stats</name> <name>get device stats</name>
<path>/login</path> <path>/device-mgt/user/device/stats</path>
<url>/stats/device/*/sensors/*</url> <url>/stats/device/*/sensors/*</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>android_sense_device</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Get device</name> <name>Get device</name>
<path>/device-mgt/user/devices/list</path> <path>/device-mgt/user/devices/list</path>
<url>/devices/*</url> <url>/devices/*</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>android_sense_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Add device</name> <name>Add device</name>
<path>/device-mgt/user/devices/add</path> <path>/device-mgt/user/devices/add</path>
<url>/devices/register</url> <url>/devices/register</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>android_sense_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Remove device</name> <name>Remove device</name>
<path>/device-mgt/user/devices/remove</path> <path>/device-mgt/user/devices/remove</path>
<url>/devices/*</url> <url>/devices/*</url>
<method>DELETE</method> <method>DELETE</method>
<scope></scope> <scope>android_sense_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Download device</name> <name>Download device</name>
<path>/device-mgt/user/devices/add</path> <path>/device-mgt/user/devices/add</path>
<url>/devices/*/download</url> <url>/devices/*/download</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>android_sense_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Update device</name> <name>Update device</name>
<path>/device-mgt/user/devices/update</path> <path>/device-mgt/user/devices/update</path>
<url>/devices/*</url> <url>/devices/*</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>android_sense_user</scope>
</Permission> </Permission>
</PermissionConfiguration> </PermissionConfiguration>

@ -39,7 +39,7 @@ import javax.ws.rs.core.Response;
@DeviceType(value = "arduino") @DeviceType(value = "arduino")
public interface ArduinoControllerService { public interface ArduinoControllerService {
@Path("register/device/{deviceId}/{ip}/{port}") @Path("device/register/{deviceId}/{ip}/{port}")
@POST @POST
Response registerDeviceIP(@PathParam("deviceId") String deviceId, @PathParam("ip") String deviceIP, Response registerDeviceIP(@PathParam("deviceId") String deviceId, @PathParam("ip") String deviceIP,
@PathParam("port") String devicePort, @Context HttpServletRequest request); @PathParam("port") String devicePort, @Context HttpServletRequest request);
@ -58,16 +58,16 @@ public interface ArduinoControllerService {
"from Arduino agent") "from Arduino agent")
Response requestTemperature(@PathParam("deviceId") String deviceId, @QueryParam("protocol") String protocol); Response requestTemperature(@PathParam("deviceId") String deviceId, @QueryParam("protocol") String protocol);
@Path("sensor") @Path("device/sensor")
@POST @POST
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
Response pushData(DeviceData dataMsg); Response pushData(DeviceData dataMsg);
@Path("{deviceId}/controls") @Path("device/{deviceId}/controls")
@GET @GET
Response readControls(@PathParam("deviceId") String deviceId, @QueryParam("protocol") String protocol); Response readControls(@PathParam("deviceId") String deviceId, @QueryParam("protocol") String protocol);
@Path("temperature") @Path("device/temperature")
@POST @POST
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
Response pushTemperatureData(final DeviceData dataMsg, @Context HttpServletRequest request); Response pushTemperatureData(final DeviceData dataMsg, @Context HttpServletRequest request);
@ -75,7 +75,7 @@ public interface ArduinoControllerService {
/** /**
* Retreive Sensor data for the device type * Retreive Sensor data for the device type
*/ */
@Path("stats/device/{deviceId}/sensors/temperature") @Path("device/stats/{deviceId}/sensors/temperature")
@GET @GET
@Consumes("application/json") @Consumes("application/json")
@Produces("application/json") @Produces("application/json")

@ -28,88 +28,83 @@
<PermissionConfiguration> <PermissionConfiguration>
<APIVersion></APIVersion> <APIVersion></APIVersion>
<!-- Device related APIs --> <!-- Device related APIs -->
<Permission> <Permission>
<name>Register Device</name> <name>Register Device</name>
<path>/login</path> <path>/device-mgt/user/device/register</path>
<url>/register/device/*/*/*</url> <url>/device/register/*/*/*</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>arduino_device</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>get device bulb statjs</name> <name>control bulb</name>
<path>/login</path> <path>/device-mgt/user/device/bulb</path>
<url>/device/*/bulb</url> <url>/device/*/bulb</url>
<method>GET</method> <method>POST</method>
<scope></scope> <scope>arduino_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>get device temperature</name> <name>get device temperature</name>
<path>/login</path> <path>/device-mgt/user/device/temperature</path>
<url>/device/*/temperature</url> <url>/device/*/temperature</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>arduino_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>get device temperature</name> <name>push data</name>
<path>/login</path> <path>/device-mgt/user/device/push-data</path>
<url>/device/*/temperature</url> <url>/device/sensor</url>
<method>GET</method>
<scope></scope>
</Permission>
<Permission>
<name>get device temperature</name>
<path>/login</path>
<url>/sensor</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>arduino_device</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>get controls</name> <name>get controls</name>
<path>/login</path> <path>/device-mgt/user/device/controls</path>
<url>/device/*/controls</url> <url>/device/*/controls</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>arduino_device</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>push temperature</name> <name>push temperature</name>
<path>/login</path> <path>/device-mgt/user/device/temperature</path>
<url>/temperature</url> <url>/device/temperature</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>arduino_device</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>get temperature</name> <name>get temperature stats</name>
<path>/login</path> <path>/device-mgt/user/device/</path>
<url>/stats/device/*/sensors/temperature</url> <url>/device/stats/*/sensors/temperature</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>arduino_device</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Get device</name> <name>Get device</name>
<path>/device-mgt/user/devices/list</path> <path>/device-mgt/user/devices/list</path>
<url>/devices/*</url> <url>/devices/*</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>arduino_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Remove device</name> <name>Remove device</name>
<path>/device-mgt/user/devices/remove</path> <path>/device-mgt/user/devices/remove</path>
<url>/devices/*</url> <url>/devices/*</url>
<method>DELETE</method> <method>DELETE</method>
<scope></scope> <scope>arduino_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Download device</name> <name>Download device</name>
<path>/device-mgt/user/devices/add</path> <path>/device-mgt/user/devices/add</path>
<url>/devices/download</url> <url>/devices/download</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>arduino_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Update device</name> <name>Update device</name>
<path>/device-mgt/user/devices/update</path> <path>/device-mgt/user/devices/update</path>
<url>/devices/*</url> <url>/devices/*</url>
<method>PUT</method> <method>PUT</method>
<scope></scope> <scope>arduino_user</scope>
</Permission> </Permission>
</PermissionConfiguration>
</PermissionConfiguration>

@ -26,6 +26,7 @@
it will result 403 error at the runtime. it will result 403 error at the runtime.
--> -->
<PermissionConfiguration> <PermissionConfiguration>
<APIVersion></APIVersion> <APIVersion></APIVersion>
<!-- Device related APIs --> <!-- Device related APIs -->
<Permission> <Permission>
@ -33,105 +34,105 @@
<path>/device-mgt/user/devices/list</path> <path>/device-mgt/user/devices/list</path>
<url>/devices/*</url> <url>/devices/*</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>digital_display_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Remove device</name> <name>Remove device</name>
<path>/device-mgt/user/devices/remove</path> <path>/device-mgt/user/devices/remove</path>
<url>/devices/*</url> <url>/devices/*</url>
<method>DELETE</method> <method>DELETE</method>
<scope></scope> <scope>digital_display_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Download device</name> <name>Download device</name>
<path>/device-mgt/user/devices/add</path> <path>/device-mgt/user/devices/add</path>
<url>/devices/*/download</url> <url>/devices/*/download</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>digital_display_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Update device</name> <name>Update device</name>
<path>/device-mgt/user/devices/update</path> <path>/device-mgt/user/devices/update</path>
<url>/devices/*</url> <url>/devices/*</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>digital_display_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Restart Browser</name>
<path></path> <path>/device-mgt/user/device</path>
<url>/device/*/restart-browser</url> <url>/device/*/restart-browser</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>digital_display_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Terminate Display</name>
<path></path> <path>/device-mgt/user/device/terminate-display</path>
<url>/device/*/terminate-display</url> <url>/device/*/terminate-display</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>digital_display_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Restart Display</name>
<path></path> <path>/device-mgt/user/device/restart-display</path>
<url>/device/*/restart-display</url> <url>/device/*/restart-display</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>digital_display_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Edit Sequence</name>
<path></path> <path>/device-mgt/user/device/edit-sequence</path>
<url>/device/*/edit-sequence</url> <url>/device/*/edit-sequence</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>digital_display_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Upload Content</name>
<path></path> <path>/device-mgt/user/device/upload-content</path>
<url>/device/*/upload-content</url> <url>/device/*/upload-content</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>digital_display_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Add Resource</name>
<path></path> <path>/device-mgt/user/device/add-resource</path>
<url>/device/*/add-resource</url> <url>/device/*/add-resource</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>digital_display_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Remove Resource</name>
<path></path> <path>/device-mgt/user/device/remove-resource</path>
<url>/device/*/remove-resource</url> <url>/device/*/remove-resource</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>digital_display_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Restart Server</name>
<path></path> <path>/device-mgt/user/device/restart-server</path>
<url>/device/*/restart-server</url> <url>/device/*/restart-server</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>digital_display_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Take Screenshot</name>
<path></path> <path>/device-mgt/user/device/screenshot</path>
<url>/device/*/screenshot</url> <url>/device/*/screenshot</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>digital_display_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Get Device Stats</name>
<path></path> <path>/device-mgt/user/device/get-device-status</path>
<url>/device/*/get-device-status</url> <url>/device/*/get-device-status</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>digital_display_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Get Content List</name>
<path></path> <path>/device-mgt/user/device/get-content-list</path>
<url>/device/*/get-content-list</url> <url>/device/*/get-content-list</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>digital_display_user</scope>
</Permission> </Permission>
</PermissionConfiguration> </PermissionConfiguration>

@ -26,6 +26,7 @@
it will result 403 error at the runtime. it will result 403 error at the runtime.
--> -->
<PermissionConfiguration> <PermissionConfiguration>
<APIVersion></APIVersion> <APIVersion></APIVersion>
<!-- Device related APIs --> <!-- Device related APIs -->
<Permission> <Permission>
@ -33,55 +34,56 @@
<path>/device-mgt/user/devices/list</path> <path>/device-mgt/user/devices/list</path>
<url>/devices/*</url> <url>/devices/*</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>drone_analyzer_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Remove device</name> <name>Remove device</name>
<path>/device-mgt/user/devices/remove</path> <path>/device-mgt/user/devices/remove</path>
<url>/devices/*</url> <url>/devices/*</url>
<method>DELETE</method> <method>DELETE</method>
<scope></scope> <scope>drone_analyzer_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Download device</name> <name>Download device</name>
<path>/device-mgt/user/devices/add</path> <path>/device-mgt/user/devices/add</path>
<url>/devices/*/download</url> <url>/devices/*/download</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>drone_analyzer_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Update device</name> <name>Update device</name>
<path>/device-mgt/user/devices/update</path> <path>/device-mgt/user/devices/update</path>
<url>/devices/*</url> <url>/devices/*</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>drone_analyzer_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Get Devices</name>
<path></path> <path>/device-mgt/user/devices</path>
<url>/devices</url> <url>/devices</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>drone_analyzer_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Generate Link</name>
<path></path> <path>/device-mgt/user/devices/generate_link</path>
<url>/devices/*/generate_link</url> <url>/devices/*/generate_link</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>drone_analyzer_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Register Device</name>
<path></path> <path>/device-mgt/user/device/register</path>
<url>/device/register/*/*/*</url> <url>/device/register/*/*/*</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>drone_analyzer_device</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Send Command</name>
<path></path> <path>/device-mgt/user/device/send_command</path>
<url>/device/*/send_command</url> <url>/device/*/send_command</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>drone_analyzer_user</scope>
</Permission> </Permission>
</PermissionConfiguration>
</PermissionConfiguration>

@ -26,83 +26,85 @@
it will result 403 error at the runtime. it will result 403 error at the runtime.
--> -->
<PermissionConfiguration> <PermissionConfiguration>
<APIVersion></APIVersion>
<APIVersion></APIVersion>
<!-- Device related APIs --> <!-- Device related APIs -->
<Permission> <Permission>
<name>Get device</name> <name>Get device</name>
<path>/device-mgt/user/devices/list</path> <path>/device-mgt/user/devices/list</path>
<url>/devices/*</url> <url>/devices/*</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>raspberrypi_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Remove device</name> <name>Remove device</name>
<path>/device-mgt/user/devices/remove</path> <path>/device-mgt/user/devices/remove</path>
<url>/devices/*</url> <url>/devices/*</url>
<method>DELETE</method> <method>DELETE</method>
<scope></scope> <scope>raspberrypi_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Download device</name> <name>Download device</name>
<path>/device-mgt/user/devices/add</path> <path>/device-mgt/user/devices/add</path>
<url>/devices/*/download</url> <url>/devices/*/download</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>raspberrypi_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Update device</name> <name>Update device</name>
<path>/device-mgt/user/devices/update</path> <path>/device-mgt/user/devices/update</path>
<url>/devices/*</url> <url>/devices/*</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>raspberrypi_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Get Devices</name>
<path></path> <path>/device-mgt/user/devices</path>
<url>/devices</url> <url>/devices</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>raspberrypi_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Generate Link</name>
<path></path> <path>/device-mgt/user/devices/generate_link</path>
<url>/devices/*/generate_link</url> <url>/devices/*/generate_link</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>raspberrypi_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Register Device</name>
<path></path> <path>/device-mgt/user/device/register</path>
<url>/device/register/*/*/*</url> <url>/device/register/*/*/*</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>raspberrypi_device</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Control Bulb</name>
<path></path> <path>/device-mgt/user/device/bulb</path>
<url>/device/*/bulb</url> <url>/device/*/bulb</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>raspberrypi_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Read Temperature</name>
<path></path> <path>/device-mgt/user/device/readtemperature</path>
<url>/device/*/readtemperature</url> <url>/device/*/readtemperature</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>raspberrypi_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Push Temperature</name>
<path></path> <path>/device-mgt/user/device/push_temperature</path>
<url>/device/push_temperature</url> <url>/device/push_temperature</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>raspberrypi_device</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Get Temperature Data</name>
<path></path> <path>/device-mgt/user/device/sensors/temperature</path>
<url>/device/stats/*/sensors/temperature</url> <url>/device/stats/*/sensors/temperature</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>raspberrypi_user</scope>
</Permission> </Permission>
</PermissionConfiguration> </PermissionConfiguration>

@ -33,90 +33,90 @@
<path>/device-mgt/user/devices/list</path> <path>/device-mgt/user/devices/list</path>
<url>/devices/*</url> <url>/devices/*</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>virtual_firealarm_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Remove device</name> <name>Remove device</name>
<path>/device-mgt/user/devices/remove</path> <path>/device-mgt/user/devices/remove</path>
<url>/devices/*</url> <url>/devices/*</url>
<method>DELETE</method> <method>DELETE</method>
<scope></scope> <scope>virtual_firealarm_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Download device</name> <name>Download device</name>
<path>/device-mgt/user/devices/add</path> <path>/device-mgt/user/devices/add</path>
<url>/devices/*/download</url> <url>/devices/*/download</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>virtual_firealarm_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name>Update device</name> <name>Update device</name>
<path>/device-mgt/user/devices/update</path> <path>/device-mgt/user/devices/update</path>
<url>/devices/*</url> <url>/devices/*</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>virtual_firealarm_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Get Devices</name>
<path></path> <path>/device-mgt/user/devices</path>
<url>/devices</url> <url>/devices</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>virtual_firealarm_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Generate Link</name>
<path></path> <path>/device-mgt/user/devices/generate_link</path>
<url>/devices/*/generate_link</url> <url>/devices/*/generate_link</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>virtual_firealarm_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Register Device</name>
<path></path> <path>/device-mgt/user/device/register</path>
<url>/device/register/*/*/*</url> <url>/device/register/*/*/*</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>virtual_firealarm_device</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Control Buzz</name>
<path></path> <path>/device-mgt/user/device/buzz</path>
<url>/device/*/buzz</url> <url>/device/*/buzz</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>virtual_firealarm_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Get Temperature</name>
<path></path> <path>/device-mgt/user/device/temperature</path>
<url>/device/*/temperature</url> <url>/device/*/temperature</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>virtual_firealarm_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Push Temperature</name>
<path></path> <path>/device-mgt/user/device/temperature</path>
<url>/device/temperature</url> <url>/device/temperature</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>virtual_firealarm_device</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Get SCEP</name>
<path></path> <path>/device-mgt/user/device/scep</path>
<url>/device/scep</url> <url>/device/scep</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>virtual_firealarm_user</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Push SCEP</name>
<path></path> <path>/device-mgt/user/device/scep</path>
<url>/device/scep</url> <url>/device/scep</url>
<method>POST</method> <method>POST</method>
<scope></scope> <scope>virtual_firealarm_device</scope>
</Permission> </Permission>
<Permission> <Permission>
<name></name> <name>Get Stats</name>
<path></path> <path>/device-mgt/user/device/stats</path>
<url>/device/stats/*/sensors/*</url> <url>/device/stats/*/sensors/*</url>
<method>GET</method> <method>GET</method>
<scope></scope> <scope>virtual_firealarm_device</scope>
</Permission> </Permission>
</PermissionConfiguration> </PermissionConfiguration>
Loading…
Cancel
Save