Skip to content

Instantly share code, notes, and snippets.

@DriveQuantPublic
Last active October 22, 2026 06:43
Show Gist options
  • Select an option

  • Save DriveQuantPublic/5b773eb6d92a947d78d8515692610e8a to your computer and use it in GitHub Desktop.

Select an option

Save DriveQuantPublic/5b773eb6d92a947d78d8515692610e8a to your computer and use it in GitHub Desktop.
openapi: 3.0.0
info:
title: PushBeaconLocation
version: '1.0'
description: >-
Webhook endpoint to be implemented on your server. DriveQuant calls it to
push beacon location events. Each event must be acknowledged by returning
HTTP 200.
servers:
- url: 'http://api.mycompany.com'
paths:
/push/beaconlocation:
post:
summary: Push beacon location event
operationId: post-push-beaconlocation
responses:
'200':
description: OK
'401':
description: Unauthorized
description: >-
Authorization header value expected by your server
(OAuth2 bearer token recommended).
parameters:
- schema:
type: string
in: header
description: 'Authorization header (preferably OAuth2 token)'
name: Authorization
requestBody:
description: ''
content:
application/json:
schema:
type: object
properties:
theftReportId:
type: string
description: Theft report unique identifier
example: "69d426569c1da34dd83a4aac"
beaconLocationId:
type: string
description: Beacon location event unique identifier
example: "69d426569c1da34dd83a4aad"
date:
type: string
format: date-time
example: "2025-01-30T07:23:22.000+0000"
description: Beacon detection date
locationDate:
type: string
format: date-time
example: "2025-01-30T07:23:27.000+0000"
description: Date of the GPS location linked to the beacon detection
uuid:
type: string
format: uuid
example: "123e4567-e89b-12d3-a456-426614174000"
description: Beacon UUID (iBeacon proximity UUID)
major:
type: integer
minimum: 0
maximum: 65535
example: 1
description: Beacon major value
minor:
type: integer
minimum: 0
maximum: 65535
example: 1
description: Beacon minor value
latitude:
type: number
format: float
minimum: -90
maximum: 90
example: 48.856614
description: Latitude of the GPS location linked to the beacon detection (decimal degrees)
longitude:
type: number
format: float
minimum: -180
maximum: 180
example: 2.3522219
description: Longitude of the GPS location linked to the beacon detection (decimal degrees)
accuracy:
type: number
format: float
example: 50.0
description: Horizontal accuracy of the GPS location, in meters
estimatedLocation:
type: object
properties:
latitude:
type: number
format: float
minimum: -90
maximum: 90
example: 48.904612
description: Estimated beacon latitude (decimal degrees)
longitude:
type: number
format: float
minimum: -180
maximum: 180
example: 2.3522219
description: Estimated beacon longitude (decimal degrees)
parameters: []
components:
schemas: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment