Fix rest example to match documentation

`getIndex` in the rest example matches /index and not / as the comments above the code claimed.
`getIndex` was simply changed to `index`.