response_get.xml
45 lines
| 1.5 KiB
| application/xml
|
XmlLexer
|
r781 | <?xml version="1.1" encoding="UTF-8" ?> | ||
|
r778 | <response> | ||
|
r794 | <!-- | ||
Valid statuses are 'success' and 'error'. | ||||
--> | ||||
|
r778 | <status>success</status> | ||
<models> | ||||
|
r838 | <model name="post"> | ||
|
r791 | <!-- | ||
|
r838 | Content tag is the data that is signed by signatures and must | ||
not be changed for the post from other node. | ||||
|
r791 | --> | ||
|
r838 | <content> | ||
<id key="id1" type="ecdsa" local-id="1" /> | ||||
<title>13</title> | ||||
<text>Thirteen</text> | ||||
<thread>id1/12</thread> | ||||
<pub-time>12</pub-time> | ||||
</content> | ||||
<!-- | ||||
There can be several signatures for one model. At least one | ||||
signature must be made with the key used in global ID. | ||||
--> | ||||
<signatures> | ||||
<signature key="id1" type="ecdsa" value="dhefhtreh" /> | ||||
<signature key="id45" type="ecdsa" value="dsgfgdhefhtreh" /> | ||||
</signatures> | ||||
|
r788 | </model> | ||
|
r838 | <model name="post"> | ||
<content> | ||||
<id key="id1" type="ecdsa" local-id="id2" /> | ||||
<title>13</title> | ||||
<text>Thirteen</text> | ||||
<pub-time>12</pub-time> | ||||
<edit-time>13</edit-time> | ||||
<tags> | ||||
<tag>tag1</tag> | ||||
</tags> | ||||
</content> | ||||
<signatures> | ||||
<signature key="id2" type="ecdsa" value="dehdfh" /> | ||||
</signatures> | ||||
|
r788 | </model> | ||
|
r778 | </models> | ||
</response> | ||||