Challenge Overview
For this challenge, we'd like to re-implement the terms APIs in Challenge Service from our old v2 APIs.
1. the endpoints should remain same except the version, like
GET v3/terms/detail/:termsOfUseId
POST v3/terms/:termsOfUseId/agree
Notes, please define a new resource class for this new path, similar as ChallengeTypeResource
2. The logic should be similar from https://github.com/appirio-tech/tc-api/blob/dev/actions/terms.js, you can make improvement if you see.
3. swagger.yaml file should be updated correspondingly.
4. Please add the postman scripts in docs directory for ease of test.
Local Setup
- Please follow Build and Run with Docker compose to build and run direct app and online review locally
- Follow the README.md file to build and start the challenge service.
- Verification Steps
1. the endpoints should remain same except the version, like
GET v3/terms/detail/:termsOfUseId
POST v3/terms/:termsOfUseId/agree
Notes, please define a new resource class for this new path, similar as ChallengeTypeResource
2. The logic should be similar from https://github.com/appirio-tech/tc-api/blob/dev/actions/terms.js, you can make improvement if you see.
3. swagger.yaml file should be updated correspondingly.
4. Please add the postman scripts in docs directory for ease of test.
Local Setup
- Please follow Build and Run with Docker compose to build and run direct app and online review locally
- Follow the README.md file to build and start the challenge service.
Final Submission Guidelines
- Code change- Verification Steps