aryaapp / xavier

Xavier is the API server for Arya.
0 stars 0 forks source link

Get journal details - As a therapist I view a journal in detail #9

Open m20io opened 9 years ago

m20io commented 9 years ago

Please write specs for the this story and finish the not implemented features. (If there is more please don't delete it)

User Story

As a therapist I view a journal with all entries.

Regular Process

Sent a GET to -/user/journals/{:uuid}-

{
    "journals":  {
        "uuid": "{UUID}",
        "created_at": "2014-09-26T22:36:58.102Z",
        "updated_at": "2014-09-26T22:36:58.387Z",
        "answers" : [
            {
                "title": "How are you feeling?",
                "created_at": "2014-09-26T22:36:58.102Z",
                "updated_at": "2014-09-26T22:36:58.387Z",
                "values" : {
                    "general" : 20,
                    ...
                }
            },
            {
                "title": "Describe the circumstances",
                "created_at": "2014-09-26T22:36:58.102Z",
                "updated_at": "2014-09-26T22:36:58.387Z",
                "values" : [
                    "I was at school",
                    "Scored a nice chick",
                    ...
                ]
            }
        ]
    }
}
purcymarte commented 9 years ago

Define the data structure.