Login

curl -X POST \
        -H 'Content-Type: application/json' \
        -d '{ "Password": "demo","Login":"demo"}' \
        'http://demo.rfidbus.rfidcenter.ru/v1/login'

Request Headers

Content-Type: application/json

Request Body

{
   "Password": "demo",
   "Login": "demo",
}

Response Headers

content-type: application/json; charset=utf-8

Response Body

{

    "Token":123456789,

    "Status":0,

}

Logout

curl -X GET \
        -H 'X-RfidBus-Token: 123456789' \
        -H 'Content-Type: application/json' \
        'http://demo.rfidbus.rfidcenter.ru/v1/logout'

Request Headers

Content-Type: application/json
X-RfidBus-Token: 123456789

Response Headers

content-type: application/json; charset=utf-8

Response Body

{
   "Status":0
}

Send Message

curl -X POST \
        -H 'X-RfidBus-Token: 123456789' \
        -H 'Content-Type: application/json' \
        -d '
{RFID Bus JSON message}' \
        'http://demo.rfidbus.rfidcenter.ru/v1/sendmessage'

Request Headers

Content-Type: application/json
X-RfidBus-Token: 123456789

Request Body

{
   RFID Bus
JSON message
}

Response Headers

content-type: application/json; charset=utf-8

Response Body

{
   RFID Bus
JSON message response
}

Subscribe URI To Events

curl -X POST
        -H 'X-RfidBus-Token: 123456789'
        -H 'Content-Type: application/json'
        -d '{"Uri": "uri"}'
        'http://demo.rfidbus.rfidcenter.ru/v1/subscribe'

Request Headers

Content-Type: application/json
X-RfidBus-Token: 123456789

Request Body

{
   "Uri": "uri"
}

Response Headers

content-type: application/json; charset=utf-8

Response Body

{
   "Status": 0
}

Get Tags

curl -X GET \
        -H 'X-RfidBus-Token: 123456789' \
        -H 'Content-Type: application/json' \
        '
http://demo.rfidbus.rfidcenter.ru/v1/events'

curl -X GET
        -H 'X-RfidBus-Token: 123456789'
        -H 'Content-Type: application/json'
        'http://demo.rfidbus.rfidcenter.ru/v1/events/reader_guid'

Request Headers

Content-Type: application/json
X-RfidBus-Token: 123456789

Response Headers

content-type: application/json; charset=utf-8

Response Body

[

  {

    "ReaderRecord": {},

    "TransponderFoundEvents": [],

    "TransponderLostEvents": [],

    "ReaderGpiStatesChangedEvents": []

  }

]