Commit 2d183484 authored by M. Rehan Abbasi's avatar M. Rehan Abbasi
Browse files

re-add /geodata/{assetName}/withinRange endpoint in GIS Engine

parent bb736e32
Loading
Loading
Loading
Loading
+34 −0
Original line number Diff line number Diff line
@@ -309,6 +309,40 @@ paths:
          description: "Not found"
        "500":
          description: "Internal server error"
  /geodata/{assetName}/withinRange:
    post:
      tags:
      - "Geospatial Data"
      summary: "Returns if a geospatial data points is within a specified distance\
        \ from a location"
      description: "Get geospatial data for the given asset and if it is within range\
        \ of another asset or geospatial coordinates"
      operationId: "getWithinRangeByName"
      produces:
      - "application/json"
      parameters:
      - name: "assetName"
        in: "path"
        description: "Name of geospatial asset"
        required: true
        type: "string"
        x-exportParamName: "AssetName"
      - in: "body"
        name: "targetRange"
        description: "Parameters of geospatial assets"
        required: true
        schema:
          $ref: "#/definitions/TargetRange"
        x-exportParamName: "TargetRange"
      responses:
        "200":
          description: "OK"
          schema:
            $ref: "#/definitions/WithinRange"
        "404":
          description: "Not found"
        "500":
          description: "Internal server error"
definitions:
  AutomationStateList:
    type: "object"