From dd0512a2f3af9ec6dceffc9e2fe0652588b00a7c Mon Sep 17 00:00:00 2001 From: Dennis Wendland Date: Tue, 26 Mar 2024 09:00:22 +0100 Subject: [PATCH] Add testing curl for service activation --- aws/dsba/README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/aws/dsba/README.md b/aws/dsba/README.md index fb023bef..217d2b94 100644 --- a/aws/dsba/README.md +++ b/aws/dsba/README.md @@ -446,6 +446,33 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entities' \ }' ``` +To test activating the PacketDeliveryService for a new participant, without acquisition at the marketplace, following command can be adapted and executed +on the PDC TIL: +```shell +curl --location 'https://til-PDC.dsba.fiware.dev/issuer' \ +--header 'Content-Type: application/json' \ +--data '{ + "did": "did:web:ips.dsba.aws.fiware.io:did", + "credentials": [ + { + "validFor": { + "from": "2024-03-01T02:00:00Z", + "to": "2028-03-01T02:00:00Z" + }, + "credentialsType": "PacketDeliveryService", + "claims": [ + { + "name": "roles", + "allowedValues": [ + "STANDARD_CUSTOMER", "GOLD_CUSTOMER" + ] + } + ] + } + ] +}' +``` + ### Cleanup