beginnings of an http gateway/api