Hello. We are evaluating SpiceDB for use
# spicedb
s
Hello. We are evaluating SpiceDB for use as a relationship platform, and I'm wondering about the status of the REST API. I see a lot of POST requests and no GET, as well as a number of deprecated APIs. Is the REST API a first-class citizen in SpiceDB or is it preferred to use GRPC?
y
strongly preferred to use gRPC. the HTTP API mostly exists for convenience and does not follow REST semantics. it's a transliteration of the gRPC API. there are also APIs that aren't implemented in the HTTP API because they use streaming semantics that can't be implemented in the normal HTTP request/response cycle.
s
Ok that's sort of what I thought. Thanks for confirming
m
Just to clarify something - the deprecated APIs are the same in both gRPC and HTTP. Also FWIW, i use the HTTP APIs during my own testing with no issues. So don't let this be a deciding factor on your decision!
8 Views