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

     1  [
     2    {
     3      "endpoint": "/list",
     4      "method": "POST",
     5      "headers": {
     6        "Content-Type": "application/json"
     7      },
     8      "expect": {
     9        "code": 200,
    10        "headers": {
    11          "Content-Type": "application/json"
    12        }
    13      }
    14    },
    15    {
    16      "endpoint": "/list",
    17      "method": "POST",
    18      "headers": {
    19        "Content-Type": "application/json"
    20      },
    21      "body": {
    22        "username": "peer"
    23      },
    24      "expect": {
    25        "code": 200,
    26        "headers": {
    27          "Content-Type": "application/json"
    28        }
    29      }
    30    },
    31    {
    32      "endpoint": "/collection/get",
    33      "method": "POST",
    34      "headers": {
    35        "Content-Type": "application/json"
    36      },
    37      "body": {
    38        "ref": "peer/movies"
    39      },
    40      "expect": {
    41        "code": 200,
    42        "Content-Type": "application/json"
    43      }
    44    },
    45    {
    46      "endpoint": "/diff",
    47      "method": "POST",
    48      "headers": {
    49        "Content-Type": "application/json"
    50      },
    51      "body": {
    52        "leftPath": "peer/movies",
    53        "rightPath": "peer/cities"
    54      },
    55      "expect": {
    56        "code": 200,
    57        "headers": {
    58          "Content-Type": "application/json"
    59        }
    60      }
    61    },
    62    {
    63      "endpoint": "/changes",
    64      "method": "POST",
    65      "headers": {
    66        "Content-Type": "application/json"
    67      },
    68      "body": {
    69        "leftRef": "peer/movies",
    70        "rightRef": "peer/cities"
    71      },
    72      "expect": {
    73        "code": 200,
    74        "headers": {
    75          "Content-Type": "application/json"
    76        }
    77      }
    78    }
    79  ]