Menu

RESTful API

Jim ladybird Jam

RESTful API

General

Application use the services of the M2MLabs Mainspring server via standard RESTful web service API's. The WADL RESTful webservice description on a local running server is located under http://localhost/cs-ws/resources/application.wadl

  • for simple GET methods any internet browser or curl
  • for POST, PUT, DELETE methods curl or SoapUI
  • the graphical admin console of Mainspring located on a local running server at http://localhost/cs-ws

The easiest way to get curl on Windows is to install cygwin.

SoapUI can be downloaded from https://sourceforge.net/projects/soapui/files


Reference

Modelling Services

Connector Services

These services are used by devices to send data and synchronize time

Retrieval Services

These services are used by applications to retrieve stored device data

Command Services

These services are used by by applications to create and maintain commands and by devices to poll for commands

Script Services

These services are used by by applications to add application specific logic via hooks. Currently there are two hooks defined to execute Groovy, Javascript or Blockly scripts whenever new sensor data is received by the server and to connect devices that use arbitrary HTTP requests to send sensor data instead of the standard HTTP POST web service.


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.