Quick 48hours! Topcoder - Update Logic For Challenge Fees Managment

Key Information

Register
Submit
The challenge is finished.

Challenge Overview

For this challenge, we'd like to update the challenge fees managment logic in billing accounts service. Please use the dev branch for https://github.com/topcoder-platform/tc-billing-account-service

The changes should be applied to /billing-accounts/{billingAccountId}/fees (GET, POST and PUT).

- General Rules
There are two approaches to define the challenge fees, fixed challenge fees (percentage of the prize) and separate challenge fees based on the challenge type. A billing account and project can only be associated with one approaches.

- For challenge fees creation (POST method)
Please update the logic to validate the requests and make sure only one approach is created for the given project. If two approaches are provided, please return BadRequest error code.

- For challenge fees updating (PUT method)
Please update the logic to validate the requests and make sure only one approach is updated for the given project, the old data should be properly removed. If two approaches are provided, please return BadRequest error code.

- Swagger Spec Update
Please properly update the swagger yaml to reflect the changes, especially for BillingAccountChallengeFees , please add clear descriptions for each field, so user can easily understand what request body it should be sent.

- Winner Responsibility
Winner will make the final fix and create the Pull Request for merging in github repo.






 

Final Submission Guidelines

- Code Changes
- Verification Steps

ELIGIBLE EVENTS:

2018 Topcoder(R) Open

REVIEW STYLE:

Final Review:

Community Review Board

Approval:

User Sign-Off

SHARE:

ID: 30063343