4 ms·
Does R2 also exposes an R2 specific interface or does it only offer the S3 compatible interface?
by afiori 4y ago
Does R2 also exposes an R2 specific interface or does it only offer the S3 compatible interface?
- vlovich123 4y agoIt supports APIv4 (JSON REST API consistent with how all other Cloudflare APIs are managed) and Worker bindings (JavaScript API). The former is how the UI is implemented (not currently documented beyond creating and deleting a bucket because we haven’t taken time to review/stabilize the API for proper REST semantics). The latter doesn’t use REST but instead has a hacked up JSONRPC-like mechanism (which we’ll rip out at some point once the runtime makes certain things easier).