##// END OF EJS Templates
Added signatures to the GET response. Added a view to get a full post response for one post. Don't show post key as it is present in the XML post view. Changed key display format
Added signatures to the GET response. Added a view to get a full post response for one post. Don't show post key as it is present in the XML post view. Changed key display format

File last commit:

r820:20af0328 decentral
r837:fbeaaa16 decentral
Show More
response_get.xml
56 lines | 2.1 KiB | application/xml | XmlLexer
<?xml version="1.1" encoding="UTF-8" ?>
<response>
<!--
Valid statuses are 'success' and 'error'.
-->
<status>success</status>
<models>
<!--
ref-id is used only to reference the model block in the
signatures block. It could be any string that is unique throughout
the file.
-->
<model name="post" ref-id="1">
<id key="id1" type="ecdsa" local-id="1" />
<title>13</title>
<text>Thirteen</text>
<thread>id1/12</thread>
<pub-time>12</pub-time>
<edit-time>13</edit-time>
<!--
Next and previous are the links to sequential models.
In the case of an image board, next are replies and previous
are the posts we replied to.
-->
<previous>
<id key="id1" type="ecdsa" local-id="3" />
<id key="id23" type="ecdsa" local-id="5" />
</previous>
<next>
<id key="id2" type="ecdsa" local-id="3" />
<id key="id43" type="ecdsa" local-id="5" />
</next>
</model>
<model name="post" ref-id="2">
<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>
</model>
</models>
<!-- The signature block is separate from the model block because the
signature value should not be included while getting the block sign.
When signing a model block, it should be in the canonical XML form.
See http://www.w3.org/TR/xml-c14n11/ for details.
-->
<signatures>
<signature model-ref="1" key="id1" type="ecdsa" value="dhefhtreh" />
<signature model-ref="1" key="id45" type="ecdsa" value="dsgfgdhefhtreh" />
<signature model-ref="2" key="id2" type="ecdsa" value="dehdfh" />
</signatures>
</response>