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

Tackle-301 Multi Questionnaire #106

Closed

Conversation

jonathanvila
Copy link
Member

@jonathanvila jonathanvila commented Jul 27, 2021

Issue : #98

  • New endpoint /questionnaires , accepting queryparam "language" , will return a list of { id, name, language }

  • New optional queryparam for the createAssessment /assessments endpoint "questionnaireId" to specify the questionnaire to create an assessment

Test case

  • start keycloak and postgre containers
  • start app on dev mode
  • connect to the DB with psql and execute the file, chaning the name of the questionnaire, and some categories : src/main/resources/db/migration/V0.0.2_003__insert_default_questionnaire.sql
  • execute curl to get the keycloak token
  • execute curl to get the questionnaires Ids
curl -X GET "http:/localhost:8085/pathfinder/questionnaires" -H 'Accept: application/json' \
            -H "Authorization: Bearer $access_token" -s
  • execute curl to create the assessment using the id of the new questionnaire
  • execute curl to get the new assessment and check the contents
    ( check the check_api.sh script to see the curl commands )

@jonathanvila jonathanvila linked an issue Jul 27, 2021 that may be closed by this pull request
…kle-301-multi-questionnaire

� Conflicts:
�	src/main/java/io/tackle/pathfinder/mapper/AssessmentMapper.java
@carlosthe19916
Copy link
Member

#128 has been merged. So closing this one since it is a duplicate of the mentioned PR.

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

Successfully merging this pull request may close these issues.

[TACKLE-9] Cover multi questionnaire
2 participants