Partial implementation of http api