##// END OF EJS Templates
Added GET request handler, command for key generation. Changed KeyPair format for ecdsa (use to_string instead of to_pem because it's shorter)
Added GET request handler, command for key generation. Changed KeyPair format for ecdsa (use to_string instead of to_pem because it's shorter)

File last commit:

r820:20af0328 decentral
r836:9ee107b9 decentral
Show More
response_get.xml
56 lines | 2.1 KiB | application/xml | XmlLexer
neko259
Added xml headers to the get response and request
r781 <?xml version="1.1" encoding="UTF-8" ?>
neko259
Changed protocol a bit to be more clear and universal
r778 <response>
neko259
Actually added the sync_key model. Added signature block to the 'get' response...
r794 <!--
Valid statuses are 'success' and 'error'.
-->
neko259
Changed protocol a bit to be more clear and universal
r778 <status>success</status>
<models>
neko259
Actually added the sync_key model. Added signature block to the 'get' response...
r794 <!--
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">
neko259
Added signature model. Use signatures in posts
r820 <id key="id1" type="ecdsa" local-id="1" />
neko259
Changed protocol a bit to be more clear and universal
r778 <title>13</title>
<text>Thirteen</text>
<thread>id1/12</thread>
<pub-time>12</pub-time>
<edit-time>13</edit-time>
neko259
Changed next and previous models format. Added clarification to the detailed...
r791 <!--
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>
neko259
Added signature model. Use signatures in posts
r820 <id key="id1" type="ecdsa" local-id="3" />
<id key="id23" type="ecdsa" local-id="5" />
neko259
Changed next and previous models format. Added clarification to the detailed...
r791 </previous>
<next>
neko259
Added signature model. Use signatures in posts
r820 <id key="id2" type="ecdsa" local-id="3" />
<id key="id43" type="ecdsa" local-id="5" />
neko259
Changed next and previous models format. Added clarification to the detailed...
r791 </next>
neko259
Updated request and response samples to the simplier model definitions
r788 </model>
neko259
Actually added the sync_key model. Added signature block to the 'get' response...
r794 <model name="post" ref-id="2">
neko259
Added signature model. Use signatures in posts
r820 <id key="id1" type="ecdsa" local-id="id2" />
neko259
Changed protocol a bit to be more clear and universal
r778 <title>13</title>
<text>Thirteen</text>
<pub-time>12</pub-time>
<edit-time>13</edit-time>
<tags>
<tag>tag1</tag>
</tags>
neko259
Updated request and response samples to the simplier model definitions
r788 </model>
neko259
Changed protocol a bit to be more clear and universal
r778 </models>
neko259
Actually added the sync_key model. Added signature block to the 'get' response...
r794
<!-- 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>
neko259
Added key type to signature sample
r808 <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" />
neko259
Actually added the sync_key model. Added signature block to the 'get' response...
r794 </signatures>
neko259
Changed protocol a bit to be more clear and universal
r778 </response>