add context to json
This commit is contained in:
parent
3f86242bfb
commit
2f250402e3
|
@ -168,13 +168,15 @@ class DidView(View):
|
||||||
def get_result(self):
|
def get_result(self):
|
||||||
components = []
|
components = []
|
||||||
data = {
|
data = {
|
||||||
'@context': ['https://ereuse.org/dpp0.json'],
|
|
||||||
'document': {},
|
'document': {},
|
||||||
'dpp': self.id_dpp,
|
'dpp': self.id_dpp,
|
||||||
'algorithm': "sha3_256",
|
'algorithm': "sha3_256",
|
||||||
'components': components,
|
'components': components,
|
||||||
}
|
}
|
||||||
result = {'data': data}
|
result = {
|
||||||
|
'@context': ['https://ereuse.org/dpp0.json'],
|
||||||
|
'data': data,
|
||||||
|
}
|
||||||
|
|
||||||
if self.dpp:
|
if self.dpp:
|
||||||
data['document'] = self.dpp.snapshot.json_hw
|
data['document'] = self.dpp.snapshot.json_hw
|
||||||
|
|
Reference in New Issue