POST api/miclasone/registerdevice
Request Information
URI Parameters
None.
Body Parameters
MobileDevicesRegisterRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| deviceID | integer |
None. |
|
| module | integer |
None. |
|
| hardwareID | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"deviceID": 1,
"module": 2,
"hardwareID": "sample string 3"
}
text/xml
Sample:
<MobileDevicesRegisterRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MiCLAS.WebAPI.Models.Base"> <deviceID>1</deviceID> <hardwareID>sample string 3</hardwareID> <module>2</module> </MobileDevicesRegisterRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
MobileDevicesResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Devices | Collection of MobileDeviceEntry |
None. |
|
| HttpStatusCode | HttpStatusCode |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Devices": [
{
"DeviceID": 1,
"DeviceName": "sample string 2",
"StorageCodeTarget": "sample string 3"
},
{
"DeviceID": 1,
"DeviceName": "sample string 2",
"StorageCodeTarget": "sample string 3"
}
],
"HttpStatusCode": 100,
"Message": "sample string 1"
}
text/xml
Sample:
<MobileDevicesResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MiCLAS.WebAPI.Models.Base">
<HttpStatusCode>Continue</HttpStatusCode>
<Message>sample string 1</Message>
<Devices>
<MobileDeviceEntry>
<DeviceID>1</DeviceID>
<DeviceName>sample string 2</DeviceName>
<StorageCodeTarget>sample string 3</StorageCodeTarget>
</MobileDeviceEntry>
<MobileDeviceEntry>
<DeviceID>1</DeviceID>
<DeviceName>sample string 2</DeviceName>
<StorageCodeTarget>sample string 3</StorageCodeTarget>
</MobileDeviceEntry>
</Devices>
</MobileDevicesResult>