method index controller api