Building API based infrastructure