Updated REST API to cast returned bolleans to ints