auto generate http api