Inji certify local installation #1406
aniket-tarento
started this conversation in
General
Replies: 1 comment
-
Team, I'm unblocked with generating did, credential schema and issuance registry by using the postman collection available here. I have performed all the configuration mentioned in the installation steps. But I'm unable to do KBA. I'm getting an error - |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team,
I'm trying to install Inji certify on my local to issue VC through Sunbird RC (custom use case) and I'm following this installation guide. On the step 5 while generating DID, creating credential and issuance schema I'm getting 404 error with following response body:
{ "errors": [] }
Following are the api calls that I'm trying to invoke:
Generate DID:
curl --location 'http://localhost:8000/api/v1/did/generate' \ --header 'Content-Type: application/json' \ --data-raw '[ { "alsoKnownAs": [ "[email protected]" ], "services": [ { "id": "IdentityHub", "type": "IdentityHub", "serviceEndpoint": { "@context": "schema.identity.foundation/hub", "@type": "UserServiceEndpoint", "instance": [ "did:test:hub.id" ] } } ], "method": "string" } ]'
Create Credential Schema:
curl --location 'http://localhost:8000/api/v1/credential-schema' \ --header 'Content-Type: application/json' \ --data '{ "schema": { "type": "https://w3c-ccg.github.io/vc-json-schemas/", "version": "1.0.0", "id": "did:ulpschema:c9cc0f03-4f94-4f44-9bcd-b24a8696fa3", "name": "Proof of Credential", "author": "did:example:bc18444a-b68c-49ec-ac66-336697616223", "authored": "2022-12-19T09:22:23.064Z", "schema": { "$id": "Proof-of-Credential-1.0", "$schema": "https://json-schema.org/draft/2019-09/schema", "description": "The holder is holding the certificate", "type": "object", "properties": { "health_worker_id": { "type": "string", "title": "Health Worker ID" }, "name": { "type": "string", "title": "Name" }, "programme_completed": { "$id": "#/properties/programme_completed", "type": "string", "title": "Programme/Assessment Completed", "enum": [ "Auxiliary Nursing and Midwifery Level 1", "Auxiliary Nursing and Midwifery Level 2", "Auxiliary Nursing and Midwifery Level 3", "General Nursing and Midwifery Level 1", "General Nursing and Midwifery Level 2", "General Nursing and Midwifery Level 3" ] }, "user_osid": { "type": "string", "title": "User OSID" } }, "required": [ "health_worker_id", "name", "programme_completed" ], "additionalProperties": true } }, "tags": [ "NursingCertificate" ], "status": "PUBLISHED" }'
Create Issuance Registry:
curl --location 'http://localhost:8000/api/v1/credential-schema' \ --header 'Content-Type: application/json' \ --data '{ "$schema": "http://json-schema.org/draft-07/schema", "type": "object", "properties": { "User": { "$ref": "#/definitions/User" } }, "required": ["User"], "title": "User", "definitions": { "User": { "$id": "#/properties/User", "type": "object", "title": "User", "required": [ "name", "mobile", "district", "facility", "role", "facility_type" ], "properties": { "name": { "type": "string", "title": "Name" }, "mobile": { "type": "string", "title": "Mobile No." }, "email": { "type": "string", "title": "Email" }, "district": { "type": "string", "title": "District" }, "division": { "type": "string", "title": "Division" }, "facility": { "type": "string", "title": "Name of the Facility" }, "role": { "$id": "#/properties/role", "type": "string", "title": "Role", "enum": ["Public Health Facility", "Private Health Facility"] }, "facility_type": { "$id": "#/properties/role", "type": "string", "title": "Public Facility Type", "enum": [ "Government Medical College", "Government District Hospital", "Primary Health Centre", "Community Health Centre", "Sub Centre/Health and Wellness Centre", "Private/Others" ] }, "health_worker_id": { "type": "string", "title": "Health Worker ID" } } } }, "_osConfig": { "osComment": [], "privateFields": [], "signedFields": [], "indexFields": [], "uniqueIndexFields": [], "roles": ["anonymous"], "inviteRoles": ["anonymous"] } } '
I have placed my schema in the schema folder. (attaching the schemas for reference)
Registry schema: Certificate.json
Credential schema: Certificate.json
Please, suggest what I'm doing wrong here.
Beta Was this translation helpful? Give feedback.
All reactions