REST API: return buildResult