Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

English

Pagetitle
Integration between Promobot ThermoControl and ACS
Integration between Promobot ThermoControl and ACS

ACS - Access Control and management System

To do the integration you need to:

  1. Get Docker-container through which communication with the ACS server will be carried out.
    Container requirements:
    Docker project image compatible with docker 19
    - Container assembly manual
    - All software must be compatible with ubuntu 16.04
    The container can also be provided in assembled form.
  2. Define the format of card numbers in the ACS database (e.g. B9B7A666)
  3. Select firmware for IronLogic Z2 USB reader and Promobot ThermoControl parameters, at which the card will be read in the form in which they are stored in the ACS database.
  4. Implement the following methods inside the container:
    Getting a user by key: /api/key/person/
    Blocking a user by key: /api/block-person-by-key/
    Unlocking a user by key: /api/unblock-person-by-key/

Methods description with examples:

  1. Locking all user keys by key

    Блок кода
    titleGET request
    /api/block-person-by-key/{key}
    (/api/block-person-by-key/EA01234567890101) 




    Блок кода
    titleResponse (example)
    {
        "error": 0,
        "data": {},
        "message": ""
    }


  2. Unlocking all user keys by key

    Блок кода
    titleGET request
    /api/unblock-person-by-key/{key} 
    (/api/unblock-person-by-key/EA01234567890101)




    Блок кода
    titleResponse (example)
    {
        "error": 0,
        "data": {},
        "message": ""
    }



  3. User information by key

    Блок кода
    titleGET request
    /api/key/person/{key} 
    (/api/key/person/EA01234567890101)




    Response:
    data - an object containing information about the user:


    Method
    LastName
    FirstName
    MiddleName
    Address
    BirthDate
    Company
    Phone
    HomePhone
    Id
    DocumentType
    DocumentNumber
    DocumentSerials
    Sex
    Birthplace
    EmailList
    IsInBlackList
    IsDismissed
    BlackListComment
    DismissedComment


    Блок кода
    titleResponse (example)
    {
    "error": 0,
    "data": {
        "Id": 34,
        "LastName": "ИвановSmith",
        "FirstName": "ИванJohn",
        "MiddleName": "Иванович",
        "Address": "ПермьParis",
        "BirthDate": "1986-01-19 00:00:00+05:00",
        "Company": "ЮНИКОРНUnicorn",
        "Phone": null,
        "HomePhone": "79194800200",
        "DocumentType": 0,
        "DocumentNumber": null,
        "DocumentSerials": null,
        "Sex": 1,
        "Birthplace": "БелдяшкиBerlin",
        "EmailList": "",
        "IsInBlackList": false,
        "IsDismissed": true,
        "BlackListComment": null,
        "DismissedComment": "Тестthis is some test comment"
        },
    "message": ""
    }



    The container will be installed directly on the Promobot ThermoControl terminal, the methods must be available to be called on localhost. Also, the container must have a configuration file for setting up communication with the ACS server.

...