It needs to be possible to create a SPM survey via the API.
A survey is a set of questions with related answers and scores that can be part of a question group.
At least one group is expected to hold questions.
Required information:
-
Name of the survey
-
Version
-
Region/Country
-
A set of question groups (at least one)
-
Question
-
Answers
***Scores
The survey is send to the server using a POST request at /mifosng-provider/api/v1/spm/ with a JSON string containing the above mentioned values.
If validation fails or a survey withe the same name, version and country/region already exists an error is thrown.
|