Commit 1bee06e0 authored by M. Rehan Abbasi's avatar M. Rehan Abbasi
Browse files

rename handler function for cellularPower endpoint

parent af354883
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -170,7 +170,7 @@ paths:
      summary: "Returns RSRQ and RSRP values for a list of coordinates"
      description: "Get geospatial data for the given asset and if it is within range\
        \ of another asset or geospatial coordinates"
      operationId: "postGeoDataPowerValues"
      operationId: "getGeoDataPowerValues"
      produces:
      - "application/json"
      parameters:
+2 −2
Original line number Diff line number Diff line
@@ -48,8 +48,8 @@ func GetWithinRangeByName(w http.ResponseWriter, r *http.Request) {
	geGetWithinRangeGeoDataByName(w, r)
}

func PostGeoDataPowerValues(w http.ResponseWriter, r *http.Request) {
	gePostGeoDataPowerValues(w, r)
func GetGeoDataPowerValues(w http.ResponseWriter, r *http.Request) {
	geGetGeoDataPowerValues(w, r)
}

func UpdateGeoDataByName(w http.ResponseWriter, r *http.Request) {
+1 −1
Original line number Diff line number Diff line
@@ -1630,7 +1630,7 @@ func geUpdateGeoDataByName(w http.ResponseWriter, r *http.Request) {
	w.WriteHeader(http.StatusOK)
}

func gePostGeoDataPowerValues(w http.ResponseWriter, r *http.Request) {
func geGetGeoDataPowerValues(w http.ResponseWriter, r *http.Request) {
	// Retrieve coordinates to work with from request body
	var coordinates Coordinates
	if r.Body == nil {
+1 −1
Original line number Diff line number Diff line
@@ -146,7 +146,7 @@ var routes = Routes{
		"GetGeoDataPowerValues",
		strings.ToUpper("Post"),
		"/gis/v1/geodata/cellularPower",
		PostGeoDataPowerValues,
		GetGeoDataPowerValues,
	},

	Route{