Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Reputation Score API Endpoint #404

Open
5 tasks
Behzad-rabiei opened this issue Nov 14, 2024 · 0 comments
Open
5 tasks

Add Reputation Score API Endpoint #404

Behzad-rabiei opened this issue Nov 14, 2024 · 0 comments
Assignees

Comments

@Behzad-rabiei
Copy link
Member

Description

Implement a new API endpoint to calculate the reputation score for a specific NFT holder.

Endpoint: ntf/:tokenId/:address/reputation-score

Parameters:

  • platforms: Array of platforms to include (enum: discourse, discord).

Tasks

  • Retrieve the module associated with the provided tokenId.
  • Fetch the community platforms linked to the module.
  • Obtain user profiles by making an HTTP request to the OCI Backend.
  • Filter the data based on the specified platforms.
  • Execute Cypher queries to compute the reputation score using the user profile IDs.
@Behzad-rabiei Behzad-rabiei self-assigned this Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant