Make API module restful