Refactored the RESTAPI to the WISH.JS AKA facade