This is an example of web-based control of a motor via REST API. See here for details.