Skip to content

Retch/shareabike-omni-lock-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Omni Lock Adapter

Api Documentation

Check if lock connected at least once the running adapter process

Request
curl --location 'http://[ADAPTER_HOST]/[IMEI]'
Response

Status codes:

  • 200: Lock has connected to adapter
  • 502: Lock has not connected to adapter/check imei

Ask lock for general information update

Request
curl --location 'http://[ADAPTER_HOST]/[IMEI]/info'
Response

Status codes:

  • 200: General information has been requested from lock
  • 502: Lock has not connected to adapter/check imei

Ask lock for position update

Request
curl --location 'http://[ADAPTER_HOST]/[IMEI]/position'
Response

Status codes:

  • 200: GPS position has been requested from lock
  • 502: Lock has not connected to adapter/check imei

Unlock lock

Request
curl --location 'http://[ADAPTER_HOST]/[IMEI]/unlock'
Response

Status codes:

  • 200: Lock will be unlocked shortly
  • 502: Lock has not connected to adapter/check imei

Ring lock (beep)

Request
curl --location 'http://[ADAPTER_HOST]/[IMEI]/ring/[AMOUNT]'
Response

Status codes:

  • 200: Lock will beep [AMOUNT] times
  • 502: Lock has not connected to adapter/check imei