fix: update Schema service to use new API endpoint

This commit is contained in:
Prad Nukala
2024-10-07 21:22:56 -04:00
parent af6e07323b
commit fbc640b7c4
11 changed files with 1481 additions and 122 deletions
+15
View File
@@ -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;