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

     1  [
     2    {
     3      "endpoint": "/sync/dag",
     4      "method": "GET",
     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": "/sync/dag",
    17      "method": "GET",
    18      "headers": {
    19        "Content-Type": "application/json"
    20      },
    21      "expect": {
    22        "code": 200,
    23        "headers": {
    24          "Content-Type": "application/json"
    25        }
    26      }
    27    },
    28    {
    29      "endpoint": "/sync/dag",
    30      "method": "POST",
    31      "headers": {
    32        "Content-Type": "application/json"
    33      },
    34      "body": {},
    35      "expect": {
    36        "code": 200,
    37        "headers": {
    38          "Content-Type": "application/json"
    39        }
    40      }
    41    },
    42    {
    43      "endpoint": "/sync/dag",
    44      "method": "PUT",
    45      "headers": {
    46        "Content-Type": "application/json"
    47      },
    48      "body": {},
    49      "expect": {
    50        "code": 200,
    51        "headers": {
    52          "Content-Type": "application/json"
    53        }
    54      }
    55    },
    56    {
    57      "endpoint": "/sync/dag",
    58      "method": "PATCH",
    59      "headers": {
    60        "Content-Type": "application/json"
    61      },
    62      "body": {},
    63      "expect": {
    64        "code": 200,
    65        "headers": {
    66          "Content-Type": "application/json"
    67        }
    68      }
    69    },
    70    {
    71      "endpoint": "/sync/logs",
    72      "method": "GET",
    73      "headers": {
    74        "Content-Type": "application/json"
    75      },
    76      "expect": {
    77        "code": 200,
    78        "headers": {
    79          "Content-Type": "application/json"
    80        }
    81      }
    82    },
    83    {
    84      "endpoint": "/sync/logs",
    85      "method": "PUT",
    86      "headers": {
    87        "Content-Type": "application/json"
    88      },
    89      "body": {},
    90      "expect": {
    91        "code": 200,
    92        "headers": {
    93          "Content-Type": "application/json"
    94        }
    95      }
    96    },
    97    {
    98      "endpoint": "/sync/logs",
    99      "method": "DELETE",
   100      "headers": {
   101        "Content-Type": "application/json"
   102      },
   103      "expect": {
   104        "code": 200,
   105        "headers": {
   106          "Content-Type": "application/json"
   107        }
   108      }
   109    },
   110    {
   111      "endpoint": "/sync/resolve",
   112      "method": "GET",
   113      "headers": {
   114        "Content-Type": "application/json"
   115      },
   116      "expect": {
   117        "code": 200,
   118        "headers": {
   119          "Content-Type": "application/json"
   120        }
   121      }
   122    },
   123    {
   124      "endpoint": "/sync/resolve",
   125      "method": "DELETE",
   126      "headers": {
   127        "Content-Type": "application/json"
   128      },
   129      "expect": {
   130        "code": 200,
   131        "headers": {
   132          "Content-Type": "application/json"
   133        }
   134      }
   135    }
   136  ]