Merge pull request #1196 from lasanthaDLPDS/master

Formatting device-location API
4.x.x
Madawa Soysa 7 years ago committed by GitHub
commit de9480e721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -156,7 +156,7 @@ public interface GeoLocationBasedService {
* Get data to show device locations in a map
*/
@GET
@Path("stats/deviceLocations")
@Path("stats/device-locations")
@ApiOperation(
consumes = "application/json",
produces = "application/json",

@ -120,7 +120,7 @@ public class GeoLocationBasedServiceImpl implements GeoLocationBasedService {
}
}
@Path("stats/deviceLocations")
@Path("stats/device-locations")
@GET
@Consumes("application/json")
@Produces("application/json")

@ -99,7 +99,7 @@ var showMarkersOnChange=function(){
var minLat = bounds._southWest.lat;
var minLong = bounds._southWest.lng;
var zoom = map.getZoom();
var backEndUrl = '/api/device-mgt/v1.0/geo-services/1.0.0/stats/deviceLocations'+
var backEndUrl = '/api/device-mgt/v1.0/geo-services/1.0.0/stats/device-locations'+
'?'+'&minLat='+minLat+'&maxLat='+maxLat+'&minLong='+minLong+
'&maxLong='+maxLong+'&zoom='+zoom;
markersLayer.clearLayers();

@ -156,7 +156,7 @@ public interface GeoLocationBasedService {
* Get data to show device locations in a map
*/
@GET
@Path("stats/deviceLocations")
@Path("stats/device-locations")
@ApiOperation(
consumes = "application/json",
produces = "application/json",

@ -120,7 +120,7 @@ public class GeoLocationBasedServiceImpl implements GeoLocationBasedService {
}
}
@Path("stats/deviceLocations")
@Path("stats/device-locations")
@GET
@Consumes("application/json")
@Produces("application/json")

Loading…
Cancel
Save