Moved API to directory for RESTful interface.