Closed russellwjoel closed 4 years ago
Decide on a success response:
{ "success": "true"} . ?
user endpoint can remove the username parameter as instead all of the data for a user is taken from the token,
add is_active check to all user action endpoints.
add logging on all endpoints
cognifit view .. ErrorMessage =. User has not recorded enough Cognifit Skill Results . -> . NO Cognifit Results
remove auto genrate of json for all questionnaires.
change user/profile . resource to somehting else? - fitbitprofile?
'/user/consent/
PUT request not post
resource /user/consent
Endpoints:
URLS
Pluralise Resources to be standard across all urls.
Response Bodies
- questionnaire questions:
[x] questionnaire -> questionnaireName
[x] section_name -> sectionName
[x] section_title -> sectionTitle
[x] positional_id -> positionalId
[x] section_instructions -> sectionInstructions
[x] section_required -> sectionRequired
[x] dependent_outcome -> dependentOutcome
[x] dependent_section -> dependentSection
[x] reference_name -> questionId
[x] questionId
[x] positionalId
[x] questionText
[x] questionSubtext
[x] question_required -> questionRequired
[x] answer_required -> answerRequired
[x] allow_multiple_answers -> allowMultipleAnswers
[x] dependent_question -> dependentQuestion
[x] dependent_answer_value -> dependentAnswerValue
[x] response_group -> responseGroup
[x] input_type -> inputType
[x] questionnaire_section -> questionnaireSection
[x] response_options -> responseOptions
[x] default_answer -> defaultAnswer
- questionnaire answers:
error body.
Method views:
Base View: