Ignore:
Timestamp:
09/07/12 16:59:14 (13 years ago)
Author:
hendrikvanantwerpen
Message:

Next steps to actually make taking surveys possible.

Split Controller in Router and Content. Updated the view.html to work
with the new app/Content mechanism. Include view page in build profile.

Rearranged Couch design documents per type. Changed config tool so the
docs.js can be more readable, functions don't have to be on one line
anymore but are serialized later. Because the .htaccess proxy is limited
to the rft database for security reasons, the config tool has to be run
on Node.js, to be able to access the Couch port (which is limited by
cross domain security in the browser).

Added elastic search to .htaccess proxy as well. Seperated CouchStore?
from rft/store, which contains application specific data.

Removed some old API files that were hanging around still.

Introduced preview mode for viewSurvey page. Changed survey page to
only show published questions to be included. The surveys page has
three categories: drafts, published and runs. Creating survey runs is
not yet implemented.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/docs/jsonformat.txt

    r384 r410  
    22========
    33{
    4     type: 'SessionTemplate',
    5     title: '',
    6     description: '',
    7     plannedDate: '', /* ISO UTC datetime */
     4    type: 'SessionTemplate'
     5    title: ''
     6    description: ''
     7    plannedDate: '' /* ISO UTC datetime */
    88    accounts: [ /* Account ids */ ]
    99}
    1010
    1111{
    12     type: 'SessionInstance',
    13     title: '',
    14     description: '',
    15     publishedDate: '', /* ISO UTC datetime */
     12    type: 'SessionInstance'
     13    title: ''
     14    description: ''
     15    publishedDate: '' /* ISO UTC datetime */
    1616    accounts: [ /* Account ids */ ]
    1717}
     
    2121{
    2222    type: 'Survey'
    23     title: '',
    24     description: '',
     23    title: ''
     24    description: ''
    2525    questions: [ /* Question ids */ ]
     26    publishedDate: ''
     27}
     28
     29{
     30    type: 'SurveyInstance'
     31    surveyId: '' // String
     32    publishedDate: '' // ISO datetime
     33    startDate: '' // can fill in after
     34    endDate: '' // can fill in until
    2635}
    2736
     
    3039{
    3140    type: 'Question'
    32     title: '',
    33     description: '',
    34     topic: '',
    35     categories: [],
     41    title: ''
     42    description: ''
     43    topic: ''
     44    categories: []
    3645    content: [{ type:'contentTypeId', /* custom content element fields */ } /* and more ... */]
    3746}
Note: See TracChangeset for help on using the changeset viewer.