[ApiServer] strings do not work in switch in cpp;