adding wifi api endpoint