You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.2 KiB
ReStructuredText
69 lines
1.2 KiB
ReStructuredText
10 years ago
|
PUT /send/abc/ HTTP/1.1
|
||
|
Host: ...
|
||
|
Content-Length: ...
|
||
|
Content-Type: application/json
|
||
|
|
||
10 years ago
|
.. code :: javascript
|
||
|
|
||
|
{
|
||
10 years ago
|
"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
|
||
10 years ago
|
}
|
||
10 years ago
|
|
||
|
HTTP/1.1 200 OK
|
||
10 years ago
|
|
||
10 years ago
|
|
||
|
======================================
|
||
|
|
||
|
GET /pull/-1/ HTTP/1.1
|
||
|
Host: ...
|
||
|
Content-Length: 0
|
||
|
|
||
|
HTTP/1.1 200 OK
|
||
|
Content-Length: ...
|
||
|
Content-Type: application/json
|
||
|
|
||
10 years ago
|
.. code :: javascript
|
||
|
|
||
|
{
|
||
10 years ago
|
origin: ...,
|
||
|
prev_ids: ...,
|
||
|
data: [
|
||
|
{
|
||
|
data_id: ...,
|
||
|
prev_pdus: [...],
|
||
|
depth: ...,
|
||
|
ts: ...,
|
||
|
context: ...,
|
||
|
origin: ...,
|
||
|
content: {
|
||
|
...
|
||
|
}
|
||
|
},
|
||
|
...,
|
||
|
]
|
||
10 years ago
|
}
|
||
10 years ago
|
|
||
|
|