init http api for supervisor