Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mergerequest#show-merge_request_diffs_batch_endpoint.json « show « merge_request « project « contracts « contracts « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3fa13766766e3a8f675ecb6064a1f7347e2610d8 (plain)
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
{
  "consumer": {
    "name": "MergeRequest#show"
  },
  "provider": {
    "name": "Merge Request Diffs Batch Endpoint"
  },
  "interactions": [
    {
      "description": "a request for diff lines",
      "providerState": "a merge request with diffs exists",
      "request": {
        "method": "GET",
        "path": "/gitlab-org/gitlab-qa/-/merge_requests/1/diffs_batch.json",
        "query": "page=0",
        "headers": {
          "Accept": "*/*"
        }
      },
      "response": {
        "status": 200,
        "headers": {
          "Content-Type": "application/json; charset=utf-8"
        },
        "body": {
          "diff_files": [
            {
              "content_sha": "b0c94059db75b2473d616d4b1fde1a77533355a3",
              "submodule": false,
              "edit_path": "/gitlab-qa-bot/...",
              "ide_edit_path": "/gitlab-qa-bot/...",
              "old_path_html": "Gemfile",
              "new_path_html": "Gemfile",
              "blob": {
                "id": "855071bb3928d140764885964f7be1bb3e582495",
                "path": "Gemfile",
                "name": "Gemfile",
                "mode": "1234567",
                "readable_text": true,
                "icon": "doc-text"
              },
              "can_modify_blob": false,
              "file_identifier_hash": "67d82b8716a5b6c52c7abf0b2cd99c7594ed3587",
              "file_hash": "67d82b8716a5b6c52c7abf0b2cd99c7594ed3587",
              "file_path": "Gemfile",
              "old_path": "Gemfile",
              "new_path": "Gemfile",
              "new_file": false,
              "renamed_file": false,
              "deleted_file": false,
              "diff_refs": {
                "base_sha": "67d82b8716a5b6c52c7abf0b2cd99c7594ed3587",
                "start_sha": "67d82b8716a5b6c52c7abf0b2cd99c7594ed3587",
                "head_sha": "67d82b8716a5b6c52c7abf0b2cd99c7594ed3587"
              },
              "mode_changed": false,
              "a_mode": "123456",
              "b_mode": "123456",
              "viewer": {
                "name": "text",
                "collapsed": false
              },
              "old_size": 2288,
              "new_size": 2288,
              "added_lines": 1,
              "removed_lines": 1,
              "load_collapsed_diff_url": "/gitlab-qa-bot/...",
              "view_path": "/gitlab-qa-bot/...",
              "context_lines_path": "/gitlab-qa-bot/...",
              "highlighted_diff_lines": [
                {
                  "text": "source",
                  "rich_text": "<span></span>",
                  "can_receive_suggestion": true
                }
              ],
              "is_fully_expanded": false
            }
          ],
          "pagination": {
            "total_pages": 1
          }
        },
        "matchingRules": {
          "$.body.diff_files": {
            "min": 1
          },
          "$.body.diff_files[*].*": {
            "match": "type"
          },
          "$.body.diff_files[*].content_sha": {
            "match": "type"
          },
          "$.body.diff_files[*].submodule": {
            "match": "type"
          },
          "$.body.diff_files[*].edit_path": {
            "match": "type"
          },
          "$.body.diff_files[*].ide_edit_path": {
            "match": "type"
          },
          "$.body.diff_files[*].old_path_html": {
            "match": "type"
          },
          "$.body.diff_files[*].new_path_html": {
            "match": "type"
          },
          "$.body.diff_files[*].blob.id": {
            "match": "type"
          },
          "$.body.diff_files[*].blob.path": {
            "match": "type"
          },
          "$.body.diff_files[*].blob.name": {
            "match": "type"
          },
          "$.body.diff_files[*].blob.mode": {
            "match": "type"
          },
          "$.body.diff_files[*].blob.readable_text": {
            "match": "type"
          },
          "$.body.diff_files[*].blob.icon": {
            "match": "type"
          },
          "$.body.diff_files[*].can_modify_blob": {
            "match": "type"
          },
          "$.body.diff_files[*].file_identifier_hash": {
            "match": "type"
          },
          "$.body.diff_files[*].file_hash": {
            "match": "type"
          },
          "$.body.diff_files[*].file_path": {
            "match": "type"
          },
          "$.body.diff_files[*].old_path": {
            "match": "type"
          },
          "$.body.diff_files[*].new_path": {
            "match": "type"
          },
          "$.body.diff_files[*].new_file": {
            "match": "type"
          },
          "$.body.diff_files[*].renamed_file": {
            "match": "type"
          },
          "$.body.diff_files[*].deleted_file": {
            "match": "type"
          },
          "$.body.diff_files[*].diff_refs.base_sha": {
            "match": "type"
          },
          "$.body.diff_files[*].diff_refs.start_sha": {
            "match": "type"
          },
          "$.body.diff_files[*].diff_refs.head_sha": {
            "match": "type"
          },
          "$.body.diff_files[*].mode_changed": {
            "match": "type"
          },
          "$.body.diff_files[*].a_mode": {
            "match": "type"
          },
          "$.body.diff_files[*].b_mode": {
            "match": "type"
          },
          "$.body.diff_files[*].viewer.name": {
            "match": "type"
          },
          "$.body.diff_files[*].viewer.collapsed": {
            "match": "type"
          },
          "$.body.diff_files[*].old_size": {
            "match": "type"
          },
          "$.body.diff_files[*].new_size": {
            "match": "type"
          },
          "$.body.diff_files[*].added_lines": {
            "match": "type"
          },
          "$.body.diff_files[*].removed_lines": {
            "match": "type"
          },
          "$.body.diff_files[*].load_collapsed_diff_url": {
            "match": "type"
          },
          "$.body.diff_files[*].view_path": {
            "match": "type"
          },
          "$.body.diff_files[*].context_lines_path": {
            "match": "type"
          },
          "$.body.diff_files[*].highlighted_diff_lines": {
            "min": 1
          },
          "$.body.diff_files[*].highlighted_diff_lines[*].*": {
            "match": "type"
          },
          "$.body.diff_files[*].highlighted_diff_lines[*].text": {
            "match": "type"
          },
          "$.body.diff_files[*].highlighted_diff_lines[*].rich_text": {
            "match": "type"
          },
          "$.body.diff_files[*].highlighted_diff_lines[*].can_receive_suggestion": {
            "match": "type"
          },
          "$.body.diff_files[*].is_fully_expanded": {
            "match": "type"
          },
          "$.body.pagination.total_pages": {
            "match": "type"
          }
        }
      }
    }
  ],
  "metadata": {
    "pactSpecification": {
      "version": "2.0.0"
    }
  }
}