I was using the wrong address, it was localhost:8001/ customer /1
instead of localhost:8001/ customers /1