nkowaokwu / igbo-api-admin

Data entry platform for the Igbo API.
https://editor.igboapi.com
Apache License 2.0
8 stars 20 forks source link

Expose an endpoint for the purpose of retrieving a user's referral code. #455

Closed IfyNdu closed 11 months ago

IfyNdu commented 1 year ago

Is your feature request related to a problem? Please describe. To enable users to access their individual referral codes, it is imperative to establish an API endpoint designed to facilitate the retrieval of a user's referral code.

Describe the solution you'd like

  1. Expose an endpoint with the signature below
    [GET] /user
  2. It should communicate with Mongodb's User Collection as described here #450 and will return the entire user document containing a referral code.

Additional context

  1. Software design document for inspiration.
IfyNdu commented 11 months ago

@ijemmao Please assign this ticket to me. Thanks!

ijemmao commented 11 months ago

done! @IfyNdu