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.
- Verification Steps
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