[API] Fix minor issues with indices.get definition and tests

mark index param as required
make body match json, not string containing json