To ensure that requests can pass from the Station host to localhost:3189 (Guardant Control Center), the local service responds to requests with the addition of CORS http headers.
Get a list of hardware keys connected to the PC
There are no input parameters.
GET http://localhost:3189/v1.0/dongles
Returns a dongles array:
{
"dongles": [
{
"dongleId": 844727475,
"dongleModel": 128,
"netResource": 0,
"publicCode": 1368487351,
"typeFlags": 504
},
{
"dongleId": 991846791,
"dongleModel": 128,
"netResource": 0,
"publicCode": 1368487351,
"typeFlags": 442
}
]
}
Hardware keys firmware
Input parameters RAW JSON - array of dongleids - hardware keys identifiers that need to be written:
{
"dongles":
[
{
"dongleId" : 12323
},
{
"dongleId" : 345453
},
{
"dongleId" : 575676
}
]
}
POST http://localhost:3189/v1.0/burndongles
Returns a dongles array with the results of the firmware operation:
{
"dongles": [
{
"dongleId": 12323,
"retCode": 33
},
{
"dongleId": 345453,
"retCode": 33
},
{
"dongleId": 575676,
"retCode": 33
}
]
}
Blink the selected hardware key
POST http://localhost:3189/v1.0/blink/{dongleid}
Returns the retCode value:
{
"retCode": 33
}