add PathVariable annotation and make integration test pass