mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
fix: update Schema service to use new API endpoint
This commit is contained in:
@@ -18,6 +18,12 @@ service Query {
|
||||
option (google.api.http).post = "/vault/v1/buildtx";
|
||||
}
|
||||
|
||||
// Schema queries the DID document by its id. And returns the required PKL
|
||||
// information
|
||||
rpc Schema(QuerySchemaRequest) returns (QuerySchemaResponse) {
|
||||
option (google.api.http).get = "/vault/v1/schema";
|
||||
}
|
||||
|
||||
// Sync queries the DID document by its id. And returns the required PKL
|
||||
// information
|
||||
rpc Sync(SyncRequest) returns (SyncResponse) {
|
||||
@@ -43,6 +49,15 @@ message QueryIPFSResponse {
|
||||
bool ipfs = 1;
|
||||
}
|
||||
|
||||
// QuerySchemaRequest is the request type for the Query/Schema RPC method.
|
||||
message QuerySchemaRequest {}
|
||||
|
||||
// QuerySchemaResponse is the response type for the Query/Schema RPC method.
|
||||
message QuerySchemaResponse {
|
||||
// Schema is the DID document.
|
||||
Schema schema = 1;
|
||||
}
|
||||
|
||||
// SyncRequest is the request type for the Sync RPC method.
|
||||
message SyncRequest {
|
||||
string did = 1;
|
||||
|
||||
Reference in New Issue
Block a user