You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

65 lines
1.1 KiB

  1. PUT /send/abc/ HTTP/1.1
  2. Host: ...
  3. Content-Length: ...
  4. Content-Type: application/json
  5. {
  6. "origin": "localhost:5000",
  7. "pdus": [
  8. {
  9. "content": {},
  10. "context": "tng",
  11. "depth": 12,
  12. "is_state": false,
  13. "origin": "localhost:5000",
  14. "pdu_id": 1404381396854,
  15. "pdu_type": "feedback",
  16. "prev_pdus": [
  17. [
  18. "1404381395883",
  19. "localhost:6000"
  20. ]
  21. ],
  22. "ts": 1404381427581
  23. }
  24. ],
  25. "prev_ids": [
  26. "1404381396852"
  27. ],
  28. "ts": 1404381427823
  29. }
  30. HTTP/1.1 200 OK
  31. ...
  32. ======================================
  33. GET /pull/-1/ HTTP/1.1
  34. Host: ...
  35. Content-Length: 0
  36. HTTP/1.1 200 OK
  37. Content-Length: ...
  38. Content-Type: application/json
  39. {
  40. origin: ...,
  41. prev_ids: ...,
  42. data: [
  43. {
  44. data_id: ...,
  45. prev_pdus: [...],
  46. depth: ...,
  47. ts: ...,
  48. context: ...,
  49. origin: ...,
  50. content: {
  51. ...
  52. }
  53. },
  54. ...,
  55. ]
  56. }