Fix http api