KlimaDAO / dash-apps

Dashboard Apps Repo
MIT License
8 stars 11 forks source link

Dash api #153

Closed biwano closed 1 year ago

biwano commented 1 year ago

Dash-API application

Fixes #154 Fixes #157 Fixes #159 Fixes #160 Fixes #161 Fixes #162

biwano commented 1 year ago

Raised one minor issue with a stray docstring commented chunk of code

It does seem like we could rename the API endpoints to refer to credits instead of offsets and then later on deal with the change in the underlying subgraphs... that way when we build the new frontend that queries the API, it will already be referring to credits instead of offsets (even though the underlying datasets are still called offsets)

AFAICT none of the actual response contents use the term offset - only the endpoint names...

I changed the endpoints and refactored the code