Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 34 lines (28 sloc) 1.257 kb
77a80e2 @jdzak Adding document to describe survey and response set JSON representations...
jdzak authored
1 # JSON Representations
2
3 This document describes the JSON representations for the ResponseSet and Survey models. The models can be serialized
4 by calling the `to_json` method.
5
6 ## ResponseSet
7
8 An example of the serialized ResponseSet JSON can be found below. The schema will be coming soon.
9
10 /* ResponseSet JSON */
11 {
12 "uuid" : "9af6d142-7fac-4ccb-9bca-58a05308a5a7",
13 "survey_id" : "94b3d750-fb63-4540-a1e2-dd7f88be9b4f",
14 "created_at" : "1970-02-04T05:15:30Z",
15 "completed_at": "1990-03-06T07:21:42Z"
16 "responses": [{
17 "uuid" : "07d72796-ebb2-4be2-91b9-68f5a30a0054",
18 "answer_id" : "9c788711-8373-44d7-b44b-754c31e596a9",
19 "question_id" : "376a501b-c32f-49de-b4d7-e28030a2ea94",
20 "value" : "Chimpanzee",
21 "created_at" : "1970-02-04T05:15:30Z",
22 "modified_at" : "1990-03-06T07:21:42Z"
23 },{
24 "uuid" : "d0467180-e126-44c0-b112-63bb87f0d869",
25 "answer_id" : "86a85d44-9f39-4df9-ae90-da7ff5dbaaf5",
26 "question_id" : "6146c103-4a8b-4869-836b-415b8666babe",
27 "created_at" : "1970-02-04T05:16:30Z",
28 "modified_at" : "1990-03-06T07:22:42Z"
29 }]
30 }
31
32 ## Survey
33
34 Example representation and schema coming soon.
Something went wrong with that request. Please try again.