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

Use Agora API instead of /api/stub/projects #61

Open
escottalexander opened this issue Jul 15, 2024 · 3 comments
Open

Use Agora API instead of /api/stub/projects #61

escottalexander opened this issue Jul 15, 2024 · 3 comments
Assignees
Labels

Comments

@escottalexander
Copy link
Collaborator

This issue is for swapping out the any place we are calling our stubbed projects API for the Agora API.

https://vote.optimism.io/api_v1/projects. Reach out if you need the API key for testing but obviously we don't want it hardcoded anywhere. Also keep in mind that this endpoint returns projects that we do not need to show. The authority on whther we need to show a project or not is the mapping returned by our api/stub/mapping endpoint.

@swellander swellander self-assigned this Jul 19, 2024
@swellander
Copy link
Collaborator

swellander commented Jul 23, 2024

I don't think we currently use the api/stub/projects endpoint anywhere in our codebase. Once the project data is initially seeded into our db, I think we'll only need to hit the Agora API when we add new projects. So this ticket will have a lot of overlap with #63

@escottalexander
Copy link
Collaborator Author

Ah, yes. That makes sense. I am adding a phase 2 label to these two issues.

@swellander
Copy link
Collaborator

It looks like the Agora API doesn't expose a project detail /projects/{ID} endpoint for some reason. So when the time comes to add new projects to our db, I guess we'll need loop over every project returned from /projects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants