#424 aligned REST API endpoints with both WS and Ajax.