Getting Details About Submitted Questions and Answers Associated With Requests in an Order
This section describes the App Broker REST API endpoint to get a list of Submitted Questions and Answers for a Request or an Order. If we pass the orderId and requestId then, we get questions and answers associated with the given order & request number. If we pass only the orderId then we get all the questions and answers for all the requests associated to the order number.
| Endpoint Example | Request Body Example |
|---|---|
| URI Example [GET] http://localhost/esd/api/orders/9/questionsAnswers (Gets all the submitted response for all the requests linked to the order 9) [GET] http://localhost/esd/api/orders/9/requests/10questionsAnswers (Gets all the submitted response for the requestId 10 and for the order 9) | { "orderId": 9, "questionsResponse": [ { "requestId": 9, "questionId": 1008, "questionType": "singleLine", "questionVersion": 1, "isConditionQuestion": false, "required": true, "questionTitle": "Single Line", "question": "How you doing?", "response": "Good", "responseDate": "3/24/2022 11:13:01 AM", "isAnswered": true, "answeredBy": "vrajappa" }, { "requestId": 10, "questionId": 1012, "questionType": "radioButtonList", "questionVersion": 1, "isConditionQuestion": false, "required": false, "questionTitle": "Radio", "question": "Gender", "response": "0", "responseDate": "3/24/2022 11:13:03 AM", "isAnswered": true, "answeredBy": "vrajappa" } ] } |
note
We can pass the order with the order prefix as FLX-9, or we can just pass the order id as 9.