api works with index view