Fixing incorrect REST endpoint