Retrieve Submitted Answers

To retrieve the responses that users had submitted for an asset, the following GET request can be used:

https://pistis-market.eu/srv/intention-analytics/api/questionnaire/:assetId/answers

Server Response

The responses will be grouped by the question. Each entry will contain the question along with the responses property, containing all the responses that users had submitted for that specific question.

Example of the response:

[
  {
    "questionId": "74c627ec-96c9-41a5-90ad-8bdcadd8abfe",
    "questionTitle": "Question text",
    "responses": ["Response 1", "Response 2"]
  },
  {
    "questionId": "bc88d655-5684-4645-8c99-aa3e2f81b43e",
    "questionTitle": "Checkbox question",
    "responses": ["Option 1", "Option 2"]
  }
]