Menu

DeviceModelList

Jim

List existing device models

Returns a list of existing device models

Path:cs-ws/resources/admin/devicemodel/list Method: GET

Parameters

  • apikey

Errors:

  • 401 UNAUTHORIZED if key is invalid or not admin key

Example

GET http://localhost/cs-ws/resources/admin/devicemodel/list?apikey=1234 HTTP/1.1

HTTP/1.1 200 OK
<devicemodels>
   <devicemodel>
      <actor>
         <model>Valve</model>
         <name>Valve1</name>
      </actor>
      <name>TemperatureDevice</name>
      <sensor>
         <model>TempSensorModel</model>
         <name>TemperatureSensor</name>
      </sensor>
   </devicemodel>
   <devicemodel>
      <name>GpsDevice</name>
      <sensor>
         <model>SimpleGpsSensorModel</model>
         <name>GpsSensor</name>
      </sensor>
   </devicemodel>
   <success>true</success>
</devicemodels>

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.