Building sample api engine