Fixing REST API on client side.