first controller api working