donal
2018-03-26 6ef0cc963d40c64fb56ba0545c05788535a45895
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[
  {
    "request": {
      "url": "^/todos",
      "method": "GET"
    },
    "response": {
      "status": 200,
      "headers": {
        "Content-Type": "application/json",
        "some-arb-HEADER": "for testing"
      },
      "latency": 800,
      "body": [
        {
          "title": "Learn some stuff about Jenkins",
          "_id": "abcdef1234567890abcdef12",
          "completed": true
        },
        {
          "title": "Completed lab 1",
          "_id": "abcdef1234567890abcdef13",
          "completed": false
        }
      ]
    }
  },
  {
    "request": {
      "url": "^/todos/*",
      "method": "PUT",
      "headers": {
        "Content-Type": "application/json"
      }
    },
    "response": {
      "status": 200,
      "headers": {
        "Content-Type": "application/json"
      },
      "latency": 300,
      "body": {
        "title": "whatever",
        "_id": "abcdef1234567890abcdef12",
        "completed": true
      }
    }
  },
  {
    "request": {
      "url": "^/todos/*",
      "method": "DELETE",
      "headers": {
        "Content-Type": "application/json"
      }
    },
    "response": {
      "status": 204,
      "headers": {
        "Content-Type": "application/json"
      },
      "latency": 150,
      "body": {}
    }
  },
  {
    "request": {
      "url": "^/todos",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json"
      }
    },
    "response": {
      "status": 201,
      "headers": {
        "Content-Type": "application/json"
      },
      "latency": 445,
      "body": {
        "title": "some new thing",
        "_id": "abcdef1234567890abcdef12",
        "completed": false
      }
    }
  }
]