github.com/qri-io/qri@v0.10.1-0.20220104210721-c771715036cb/api/spec/testdata/peer.json (about)

     1  [
     2    {
     3      "endpoint": "/peer",
     4      "method": "POST",
     5      "headers": {
     6        "Content-Type": "application/json"
     7      },
     8      "body": {
     9        "peername": "peer"
    10      },
    11      "expect": {
    12        "code": 200,
    13        "headers": {
    14          "Content-Type": "application/json"
    15        }
    16      }
    17    },
    18    {
    19      "endpoint": "/peer/connect",
    20      "method": "POST",
    21      "headers": {
    22        "Content-Type": "application/json"
    23      },
    24      "body": {
    25        "peername": "peer"
    26      },
    27      "expect": {
    28        "code": 200,
    29        "headers": {
    30          "Content-Type": "application/json"
    31        }
    32      }
    33    },
    34    {
    35      "endpoint": "/peer/disconnect",
    36      "method": "POST",
    37      "headers": {
    38        "Content-Type": "application/json"
    39      },
    40      "body": {
    41        "peername": "peer"
    42      },
    43      "expect": {
    44        "code": 200,
    45        "headers": {
    46          "Content-Type": "application/json"
    47        }
    48      }
    49    },
    50    {
    51      "endpoint": "/peer/list",
    52      "method": "POST",
    53      "headers": {
    54        "Content-Type": "application/json"
    55      },
    56      "expect": {
    57        "code": 200,
    58        "headers": {
    59          "Content-Type": "application/json"
    60        }
    61      }
    62    }
    63  ]