Introduction

This document is intended to provide an overview of all the features of ELOCK2 SLS API and how you can best use them. It is oriented around the nine main functions that ELOCK2 offers


sls_system


Methods:
1.1.1
GET getVersion This request for project version information.
1.1.2
GET getSuppliers This request for Suppliers information.
1.1.3
GET getCustomers This request for Customers information.
1.1.4
GET getContacts This request for Contacts information.
1.1.5
GET getSystemTime This request for project system time information.
1.1.6
GET getProductTypes This request for product type informations.
1.1.7
GET getProducts?type This request for product type informations with type filter. Fill the (int) with integer.
1.1.8
POST updateCustomerMapData This request for update to Customers lat/log values. The values in the input section must be written into the link in the usage section.

1.1.1. getVersion

This request for project version information.

  • REQUIRED VPN

OUTPUT (JSON)

{
build-date type string
version type string
}

Usage: http://192.168.2.153:8081/sls_system/getVersion

METHOD EXAMPLE


{
"build-date": "17.05.2024 12:00:12",
"version": "1.5"
}

1.1.2. getSuppliers

This request for Suppliers information.

  • REQUIRED VPN

OUTPUT (JSON)

{
tel1 type string
ort type string
tel2 type string
postleitzahl type string
address type string
nr type int
nation type string
strasse type string
latitude type string
company type string
email type string
longitude type string
}

Usage: http://192.168.2.153:8081/sls_system/getSuppliers

METHOD EXAMPLE


{
"tel1": "",
"ort": "Deizisau",
"tel2": "",
"postleitzahl": "73779",
"address": "",
"nr": 472,
"nation": "",
"strasse": "Gutenbergstraße 12",
"latitude": "",
"company": "ELOCK2",
"email": "",
"longitude": ""
}

1.1.3. getCustomers

This request for Customers information.

  • REQUIRED VPN

OUTPUT (JSON)

{
tel1 type string
ort type string
tel2 type string
postleitzahl type string
address type string
nation type string
strasse type string
latitude type string
id type int
email type string
longitude type string
}

Usage: http://192.168.2.153:8081/sls_system/getCustomers

METHOD EXAMPLE


{
"tel1": "07119012130",
"ort": "Deizisau",
"tel2": "",
"postleitzahl": "73779",
"address": "",
"nation": "DE",
"strasse": "Gutenbergstr. 10-12",
"latitude": "48.713345",
"company": "ELOCK2 Sancak Sicherheitstechnik e. K.",
"id": 74,
"email": "info@elock2.de",
"longitude": "9.393169"
}

1.1.4. getContacts

This request for Contacts information.

  • REQUIRED VPN

OUTPUT (JSON)

{
tel1 type string
ort type string
tel2 type string
postleitzahl type string
address type string
nation type string
strasse type string
latitude type string
company type string
id type int
email type string
longitude type string
}

Usage: http://192.168.2.153:8081/sls_system/getContacts

METHOD EXAMPLE


{
"tel1": "0711-90121350",
"ort": "Esslingen",
"tel2": "",
"postleitzahl": "73728",
"address": "",
"nation": "",
"strasse": "Neckarstr. 27",
"latitude": "",
"company": "Sicherheitstechnik Sancak e.K.",
"id": 453766,
"email": "info@elock2.de",
"longitude": ""
}

1.1.5. getSystemTime

This request for project system time information.

  • REQUIRED VPN

OUTPUT (JSON)

{
date type string
time type string
}

Usage: http://192.168.2.153:8081/sls_system/getSystemTime

METHOD EXAMPLE


{
"date": "04.06.2024",
"time": "23:19:48"
}

1.1.6. getProductTypes

This request for product type informations.

  • REQUIRED VPN

OUTPUT (JSON)

{
name type string
comment type string
id type string
}

Usage: http://192.168.2.153:8081/sls_system/getProductTypes

METHOD EXAMPLE


{
"name": "Schließzylinder",
"comment": "Intelligente Schließzylinder",
"id": 1
}

1.1.7. getProducts?type

This request for product type informations with type filter. Fill the (int) with integer.

  • REQUIRED VPN ~ REQUIRED INTEGER

OUTPUT (JSON)

{
nr type int
name type string
id type string
type type int
}

Usage: http://192.168.2.153:8081/sls_system/getProducts?type=(int)

METHOD EXAMPLE


{
"nr": 29,
"name": "Griff Links, mit Rosettengarnitur",
"id": "B8G4",
"type": 2
}

1.1.8. updateCustomerMapData

This request for update to Customers lat/log values. The values in the input section must be written into the link in the usage section.

  • REQUIRED VPN ~ REQUIRED VALUES

INPUT (JSON)

{
id type int
latitude type double
longitude type double
}

Usage: http://192.168.2.153:8081/sls_system/updateCustomerMapData?id={id}&latitude={latitude}&longitude={longitude}

Designed with by ELOCK2