Open dckc opened 6 years ago
Technically speaking you could indeed argue that what's there currently is an API, but it is not in any way generalised.
I believe the goal of this effort is a developing a REST API that implements the JSONAPI spec, which should make quickly requesting data out of the rewards.rchain.coop database a lot easier.
... but it is not in any way generalised.
You say that like it's a bad thing. :)
Generality is often a cost without benefit. http://wiki.c2.com/?YouArentGonnaNeedIt
Taking a quick look at the http://jsonapi.org/format/ spec... oh no...
The members data and errors MUST NOT coexist in the same document.
Have they not heard of sum types?
Anyway... my question remains: what's the motivation? Why is implementing the JSONAPI spec a useful goal?
Hint: tell me a story. https://informatics.gpcnetwork.org/trac/Project/wiki/StoryTellingAndTestCases
The README says:
In what way is the current rewards.rchain.coop not a general API that lets anyone create an interface?
cf. https://indieweb.org/API