const response = await fetch('/api/v1/profiles/did-document/validate', {
method: 'POST',
headers: {
"Authorization": "Bearer JWT",
"Content-Type": "application/json"
},
body: JSON.stringify({
"id": "text",
"context": [
"text"
],
"alsoKnownAs": [
"text"
],
"controller": [
"text"
],
"verificationMethod": [],
"authentication": [],
"assertionMethod": [],
"keyAgreement": [],
"capabilityInvocation": [],
"capabilityDelegation": [],
"service": []
}),
});
const data = await response.json();