Is your feature request related to a problem? Please describe.
In order to streamline the implementation of a referral code system, it is essential to establish a dedicated API endpoint tailored to monitor and allocate points to users who successfully refer other users.
Describe the solution you'd like
Expose an endpoint with the signature below
[POST] /referral?referral-code=<myawesomecode>
It should create a new referral with Mongodb'sUser Collection as described here #450.
Query the User collection described here #450 for the owner of the referral code
Use the response in the query above to create a Referral document also described here #450
Is your feature request related to a problem? Please describe. In order to streamline the implementation of a referral code system, it is essential to establish a dedicated API endpoint tailored to monitor and allocate points to users who successfully refer other users.
Describe the solution you'd like Expose an endpoint with the signature below
It should create a new referral with
Mongodb's
User
Collection as described here #450.User
collection described here #450 for the owner of the referral codeReferral
document also described here #450Additional context