Register
Submit a solution
The challenge is finished.

Challenge Overview

For this challenge, we'd like to add a new API for activating draft challenges in challenge microservice.

Followings are the requirements.

1. the endpoint should be like POST /challenges/{challenge_id}/activate
- if there are no challenge with the given challenge, return 404 error
- if the provided challenge is not in DRAFT status, return 400 error
- any other error should be return as 500 error
- the response should be the updated challenge response.

2. The implementation should be similar as save draft challenge (POST /challenges) by communicating the EJBs in direct app

3. In direct-app, here are the implementation reference - https://github.com/appirio-tech/direct-app/blob/dev/src/java/main/com/topcoder/direct/services/view/action/contest/launch/SaveDraftContestAction.java#L1559-L1592

4. Create Postman script for easily of testing for different cases. 
- Please use environment variables for pieces that is possiblly changable in different environment, like local, dev, prod.   For example, "http://localhost:8080", will be replaced "https://api.topcoder-dev.com" in dev

General Requirements

1. swagger.yaml should be merge and updated to reflect the changes.
2. The API requests and responses should follow the v3 API standards.

About Local Setup

- The Challenge APIs need to communicate with Direct App and Informix Database, 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.
- 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 addressing the requirements
- Updated swagger.yaml file
- Deployment Guide and Verification Steps

ELIGIBLE EVENTS:

2017 TopCoder(R) Open

Review style

Final Review

Community Review Board

Approval

User Sign-Off

ID: 30056443