voting with REST endpoints