switch http api plugin