Added API support

Added API support for the webui