Service activation
PEXBefore configurationanother party can interact with you, they will first need to find your endpoints. The discovery service in the Nuts node can help you. The Nuts node can act as both server and client. From a use case definition you'll receive the following information/files:
Example:
{
"id": "coffeecorner",
"did_methods": ["web", "nuts"],
"endpoint": "https://example.com/discovery/coffeecorner",
"presentation_max_validity": 36000,
"presentation_definition": {
"id": "coffeecorner2024",
"format": {
"ldp_vc": {
"proof_type": [
"JsonWebSignature2020"
]
},
"jwt_vp": {
"alg": ["ES256"]
}
},
"input_descriptors": [
{
"id": "NutsOrganizationCredential",
"constraints": {
"fields": [
{
"path": [
"$.type"
],
"filter": {
"type": "string",
"const": "NutsOrganizationCredential"
}
},
{
"id": "organization_name",
"path": [
"$.credentialSubject.organization.name"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.credentialSubject.organization.city"
],
"filter": {
"type": "string"
}
}
]
}
}
]
}
}
The constraint for organization name (organization_name) can be used as search parameter.
Activate service for subject
POST /internal/discovery/v1/coffeecorner/my_identifier
{
"registrationParameters": {
"fhir": "https://api.example.com/fhir",
"contact": "alice@example.com"
}
}
As you can see, contact information can also be added. Follow the use case requirements.