CHange REST for manage better id and index + pages