Challenge Overview
Attention! This is a fast 48h challenge. Make sure you don’t miss the deadline ;)
In the previous challenges, we created an endpoint in ap-review-microservice to fetch the available review opportunities. In this challenge, we want to restrict the results returned by this endpoint based on the user’s access level.
This is already implemented in ap-challenge-microservice so you’ll just have to copy/follow the same implementation.
Detailed Requirements
We want to make the following updates to the /reviewOpportunities endpoint:
-
If the API is called without authentication, the endpoint should return ONLY review opportunities for public challenges. As a public, we define a challenge that doesn’t have a group associated with it.
-
If the API is called with authentication, the endpoint should return review opportunities for challenges that match a group the user is in as well as public challenges.
-
Create a new test in the Postman collection that calls the endpoint with authentication.
Notes:
-
The ap-challenge-microservice repo is provided just for reference. You need to work out of the latest commit in dev branch in ap-review-microservice repo.
-
Check this to see how this functionality is implemented.
Please request access to both GitHub repositories in the challenge forum.
Feel free to ask any question in the challenge forum.
Final Submission Guidelines
Please submit a git patch for the latest commit in dev branch and a verification document.
A video showing your implementation in action is highly desirable but not required.