Key Information

Register
Submit
The challenge is finished.

Challenge Overview

We'd like to return more info for challenges, the following changes applied to all GET APIs for challenges.

1. Return complete list of phases.

Currently, in the challenge responses, there are currentPhases and upcomingPhase fields, but it is not flexiable for different usages, so we'd like to return the full list phases for challenges, so we can easily use it.

Please keep currentPhases and upcomingPhase fields for compatibility consideration.

2. Return Prize set

Besides the totalPrize field, you need to information like
"prize": [
        1500,
        350
 ]

3.Return Challenge Related Events

It is possible that a challenge is associated with one or more events, so we'd like to return these information.

the response should be like 

"events": 
[
{
eventId: 1, 
eventName: "TCO"
}
]

4. Add fields for holding the DR points and Realibility Bonus info
5. Create Postman Script for Easily of testing updated APIs

6. Be sure to reduce the sql queries as much as possible.

7. swagger.yaml should be properly updated for the changes.

About Local Setup

- Please check https://github.com/appirio-tech/tc-common-tutorials/tree/master/docker/direct-app about how to build, deploy and run direct-app locally. 
- Be sure to start the elasticsearch feeder service, otherwise, the challenge service will not work
- Please use Topcoder Direct to setup the test challenge data.
- Please check ap-challenge-microservice.zip/docs/Deployment Guide.docx about how to run the service and test with the API.


Final Submission Guidelines

- Code changes for the requirements above
- Postman scripts for easily of testing
- Updated swagger.yaml file
- Verification Steps

REVIEW STYLE:

Final Review:

Community Review Board

Approval:

User Sign-Off

SHARE:

ID: 30056833