Fix rest example to match documentation and to match the special index rule (changed getIndex to index)
Merge pull request #251 from yazd/rest-example-fix

Fix rest example to match documentation