formatting device-location API

This commit is contained in:
lasantha 2018-02-23 14:29:49 +05:30
parent 00b2ded5ea
commit 175c987b8a
5 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

@ -99,7 +99,7 @@ var showMarkersOnChange=function(){
var minLat = bounds._southWest.lat; var minLat = bounds._southWest.lat;
var minLong = bounds._southWest.lng; var minLong = bounds._southWest.lng;
var zoom = map.getZoom(); 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+ '?'+'&minLat='+minLat+'&maxLat='+maxLat+'&minLong='+minLong+
'&maxLong='+maxLong+'&zoom='+zoom; '&maxLong='+maxLong+'&zoom='+zoom;
markersLayer.clearLayers(); markersLayer.clearLayers();

View File

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

View File

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