google / testrun

A tool to automate verification of network-based device behavior
Apache License 2.0
26 stars 9 forks source link

Endpoint for a device profile questions #668

Closed hitnik closed 2 months ago

hitnik commented 2 months ago

I refactored the code so that a single endpoint will be used for all questions and answers. The questions are divided into steps, and if there is a subsequent step, a link to the next step will be included in the response. Each question and each answer has been assigned an ID. We discussed this solution with the team and concluded that it would be more convenient this way. Of course, at the moment, there is no need for such a structure, but it is implemented with the addition of new questions in mind.

hitnik commented 2 months ago

I'm unsure of the use of an ID in these questions. For single select answers we have previously just used the string

@jboddey I primarily did this for multiselect answer options, but I added IDs to other questions for consistency.