dfuse-io / dfuse-eosio

dfuse for EOSIO
https://dfuse.io
Apache License 2.0
202 stars 45 forks source link

REST /v0/state/tables/ is nonintuitive #97

Open shaqk opened 4 years ago

shaqk commented 4 years ago

Proposed Changes:

GET /v0/state/tables/scopes -> GET /v0/state/table/rows GET /v0/state/tables/accounts -> GET /v0/state/table/accounts

abourget commented 4 years ago

A quite large refactor of fluxdb is pending merge, and FluxDB will now speak gRPC. It's our goal to bring those functionalities to GraphQL for the most part. Things will be more streaming, and we want to add more flexibility. The language for accessing things there will be defined and I'd like your feedback before we push anything.

We'll retrofit those endpoints, as eosws (or some other component) will need to "shim" the REST interface, and talk gRPC behind the scenes.. in that case, it'll be easier to create a /v1/state/ interface with new names, and perhaps deprecate those /v0/state endpoints. Because right now, fluxdb itself services those REST requests (it's a passthrough from eosws).