Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
m20io opened this issue Jul 6, 2015 · 1 comment
Open

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

m20io opened this issue Jul 6, 2015 · 1 comment

Comments

@m20io
Copy link

m20io commented Jul 6, 2015

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}-

  • respond with the jounral data like this if the users has access:
{
    "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",
                    ...
                ]
            }
        ]
    }
}
  • respond with an error otherwise
@m20io m20io added this to the Version 1.0 - MVP milestone Jul 6, 2015
@purcymarte
Copy link

Define the data structure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants