Register
Submit a solution
The challenge is finished.

Challenge Overview

Challenge Objective

  • Create an endpoint that will allow fetching user’s challenges by member ID.

  • Validate the project ID exists.

Tech Stack

  • Node.js

  • Express.js

  • Swagger

  • DynamoDB

  • ElasticSearch

Project Background

In this series of challenges, we will build the version 5 (V5) of the challenge API.

Code Access

Challenge API

Repo: https://github.com/topcoder-platform/challenge-api 

Branch: develop

Resources API

Repo: https://github.com/topcoder-platform/resources-api

Branch: develop

Detailed requirements

Requirement 1

Recently, we created the /resources/{memberId}/challenges endpoint in the resources API that will return an array of challenge IDs for a given member ID.

 

As part of this challenge, you need to update the /challenges endpoint of the challenge API to support an optional memberId query parameter.

 

If that parameter is provided, the challenge API needs to call the resources API using an M2M (machine to machine) token to get the challenges accessible by the given memberId and then fetch all challenges with the returned challenge IDs.

Requirement 2

The requirement is explained here https://github.com/topcoder-platform/challenge-api/issues/21

Requirement 3

You need to update existing tests and cover the new code with both positive and negative tests.

 

You also need to update the POSTMAN collection as well as the Swagger definition.

 

Should you have any questions, feel free to ask on the challenge forum!

What to Submit

Submit a git patch file for the latest commit in the develop branch.

Make sure to mention the exact commit you used so we can apply your patch without issues and a verification document with details on how to verify your submission.



Final Submission Guidelines

Please read above

ELIGIBLE EVENTS:

Topcoder Open 2019

Review style

Final Review

Community Review Board

Approval

User Sign-Off

ID: 30095487