api blueprint for results endpoint