{
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/connections/1.0/invitation",
"@id": "562f4181-2109-49a9-af68-e5b3b201b292",
"label": "Faber.Agent",
"recipientKeys": [
"FF2a8JnqXaTB7iwFVRajEsDf1wPE6dG2NkXGXWTaXWcC"
],
"serviceEndpoint": "http://127.0.0.1:3333"
}
Above we have a invitation example and there is section marked serviceEndpoint.
Assuming this RFC is processed correctly is a POST request with the Encrypted data send to http://127.0.0.1:3333?
Basically I'm going through the Swagged example, and even the Aries documentation and I don't understand how data is SENT when the Aries RFC is processed.
Aries using a bunch of non standard things when doing Post Requests you need to consider.
At the time of writing Aries uses a format called "Agent Wire Messages", currently Agent Wire Messages is just JSON, but has a different header in the post request, labeled as "application/ssi-agent-wire"
If you are using node express you need to assign a custom JSON handler (Note in future this may no longer work when additional features are added) which can be accomplished by adding...
app.use(bodyParser.json({ type: 'application/ssi-agent-wire' }));
to your Express App (Note, this may not be compatible when newer Agent Wire standards are added, please refer to the date of the post.