GET, POST | /configuration/objects/{ObjectIds}/devices |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class DeviceInfoGetRequest
{
var objectIds:ArrayList<String> = ArrayList<String>()
}
open class DeviceInfoGetResponse
{
var devices:HashMap<Int,DeviceInfoEntity> = HashMap<Int,DeviceInfoEntity>()
}
open class DeviceInfoEntity
{
var id:Int? = null
var description:String? = null
var name:String? = null
var loadOrder:Int? = null
var nodeId:UUID? = null
var nodeName:String? = null
var protocolId:Int? = null
var protocolName:String? = null
var connectionString:String? = null
}
Kotlin DeviceInfoGetRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /configuration/objects/{ObjectIds}/devices HTTP/1.1
Host: monitoring.ox2.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
objectIds:
[
String
]
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { devices: { 0: { id: 0, description: String, name: String, loadOrder: 0, nodeName: String, protocolId: 0, protocolName: String, connectionString: String } } }