summary refs log tree commit diff
path: root/docs/client-server/model/protocol_examples.rst
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2014-11-12 01:16:38 +0200
committerMatthew Hodgson <matthew@matrix.org>2014-11-12 01:16:38 +0200
commit33e9e0fb2dafeb47ad60169c2cf484bc32d585d0 (patch)
treebfdef6d5cb21e9a1ef1dab1fda216d92054909ea /docs/client-server/model/protocol_examples.rst
parentthis got merged into matrix-doc/specification/00_basis.rst by someone (diff)
downloadsynapse-33e9e0fb2dafeb47ad60169c2cf484bc32d585d0.tar.xz
move model/ into matrix-doc/drafts
Diffstat (limited to 'docs/client-server/model/protocol_examples.rst')
-rw-r--r--docs/client-server/model/protocol_examples.rst64
1 files changed, 0 insertions, 64 deletions
diff --git a/docs/client-server/model/protocol_examples.rst b/docs/client-server/model/protocol_examples.rst
deleted file mode 100644

index 61a599b432..0000000000 --- a/docs/client-server/model/protocol_examples.rst +++ /dev/null
@@ -1,64 +0,0 @@ -PUT /send/abc/ HTTP/1.1 -Host: ... -Content-Length: ... -Content-Type: application/json - -{ - "origin": "localhost:5000", - "pdus": [ - { - "content": {}, - "context": "tng", - "depth": 12, - "is_state": false, - "origin": "localhost:5000", - "pdu_id": 1404381396854, - "pdu_type": "feedback", - "prev_pdus": [ - [ - "1404381395883", - "localhost:6000" - ] - ], - "ts": 1404381427581 - } - ], - "prev_ids": [ - "1404381396852" - ], - "ts": 1404381427823 -} - -HTTP/1.1 200 OK -... - -====================================== - -GET /pull/-1/ HTTP/1.1 -Host: ... -Content-Length: 0 - -HTTP/1.1 200 OK -Content-Length: ... -Content-Type: application/json - -{ - origin: ..., - prev_ids: ..., - data: [ - { - data_id: ..., - prev_pdus: [...], - depth: ..., - ts: ..., - context: ..., - origin: ..., - content: { - ... - } - }, - ..., - ] -} - -