Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query Schema RPCs for module ssi #54

Merged
merged 3 commits into from
Feb 13, 2022
Merged

Conversation

arnabghose997
Copy link
Contributor

No description provided.

@arnabghose997
Copy link
Contributor Author

arnabghose997 commented Feb 13, 2022

RPC Queries Output

Querying Schema by Schema ID

Swagger UI:

image

CLI

hid-noded query ssi get-schema 17de181feb67447da4e78259d92d0240                                                                                               schema:
  author: did:hs:0f49341a-20ef-43d1-bc93-de30993e6c51
  authored: Tue Apr 06 2021 00:09:56 GMT+0530 (India Standard Time)
  id: did:hs:abcdefghi;id=17de181feb67447da4e78259d92d0240;version=1.0
  modelVersion: v1.0
  name: HS credential template
  schema:
    additionalProperties: false
    description: test
    properties: '{myString:{type:string},myNumner:{type:number},myBool:{type:boolean}}'
    required:
    - myString
    - myNumner
    - myBool
    schema: https://json-schema.org/draft-07/schema#
    type: object
  type: https://w3c-ccg.github.io/vc-json-schemas/schema/1.0/schema.json

Schema List

Swagger UI

image

CLI

hid-noded query ssi schema-list
pagination:
  next_key: null
  total: "2"
schemaList:
- author: did:hs:0f49341a-20ef-43d1-bc93-de30993e6c51
  authored: Tue Apr 06 2021 00:09:56 GMT+0530 (India Standard Time)
  id: did:hs:abcdefghi;id=17de181feb67447da4e78259d92d0240;version=1.0
  modelVersion: v1.0
  name: HS credential template
  schema:
    additionalProperties: false
    description: test
    properties: '{myString:{type:string},myNumner:{type:number},myBool:{type:boolean}}'
    required:
    - myString
    - myNumner
    - myBool
    schema: https://json-schema.org/draft-07/schema#
    type: object
  type: https://w3c-ccg.github.io/vc-json-schemas/schema/1.0/schema.json
- author: did:hs:0f49341a-20ef-43d1-bc93-de30993e6c51
  authored: Tue Apr 16 2021 00:09:56 GMT+0530 (India Standard Time)
  id: did:hs:abcdefghi;id=17de181feb67447da4e78259d92d0242;version=1.0
  modelVersion: v1.0
  name: HS credential template
  schema:
    additionalProperties: false
    description: test
    properties: '{myString:{type:string},myNumner:{type:number},myBool:{type:boolean}}'
    required:
    - myString
    - myNumner
    - myBool
    schema: https://json-schema.org/draft-07/schema#
    type: object
  type: https://w3c-ccg.github.io/vc-json-schemas/schema/1.0/schema.json

Schema Count

Swagger UI

image

CLI

hid-noded query ssi schema-count
count: "2"

@arnabghose997 arnabghose997 merged commit 3670cbc into main Feb 13, 2022
@arnabghose997 arnabghose997 linked an issue Feb 13, 2022 that may be closed by this pull request
@arnabghose997 arnabghose997 deleted the query-schema-by-id-module-ssi branch February 21, 2022 04:41
@arnabghose997 arnabghose997 removed a link to an issue Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant