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 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334
|
interactions:
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-type:
- application/json
PRIVATE-TOKEN:
- DKkdC5JmKWWZgXZGzg83
User-Agent:
- python-requests/2.22.0
method: GET
uri: http://localhost/api/v4/projects/test%2Fproject_labels
response:
body:
string: '{"id":33,"description":"","name":"project_labels","name_with_namespace":"test
/ project_labels","path":"project_labels","path_with_namespace":"test/project_labels","created_at":"2019-07-25T14:47:24.837Z","default_branch":null,"tag_list":[],"ssh_url_to_repo":"git@gitlab.example.com:test/project_labels.git","http_url_to_repo":"http://gitlab.example.com/test/project_labels.git","web_url":"http://gitlab.example.com/test/project_labels","readme_url":null,"avatar_url":null,"star_count":0,"forks_count":0,"last_activity_at":"2019-07-25T14:47:24.837Z","namespace":{"id":3,"name":"test","path":"test","kind":"group","full_path":"test","parent_id":null,"avatar_url":null,"web_url":"http://gitlab.example.com/groups/test"},"_links":{"self":"http://gitlab.example.com/api/v4/projects/33","issues":"http://gitlab.example.com/api/v4/projects/33/issues","merge_requests":"http://gitlab.example.com/api/v4/projects/33/merge_requests","repo_branches":"http://gitlab.example.com/api/v4/projects/33/repository/branches","labels":"http://gitlab.example.com/api/v4/projects/33/labels","events":"http://gitlab.example.com/api/v4/projects/33/events","members":"http://gitlab.example.com/api/v4/projects/33/members"},"empty_repo":true,"archived":false,"visibility":"internal","resolve_outdated_diff_discussions":false,"container_registry_enabled":true,"issues_enabled":true,"merge_requests_enabled":true,"wiki_enabled":true,"jobs_enabled":true,"snippets_enabled":true,"issues_access_level":"enabled","repository_access_level":"enabled","merge_requests_access_level":"enabled","wiki_access_level":"enabled","builds_access_level":"enabled","snippets_access_level":"enabled","shared_runners_enabled":false,"lfs_enabled":true,"creator_id":1,"import_status":"none","import_error":null,"open_issues_count":0,"runners_token":"jsPK3FykBBsBerxu5Bhs","ci_default_git_depth":50,"public_jobs":true,"build_git_strategy":"fetch","build_timeout":3600,"auto_cancel_pending_pipelines":"enabled","build_coverage_regex":null,"ci_config_path":null,"shared_with_groups":[],"only_allow_merge_if_pipeline_succeeds":false,"request_access_enabled":false,"only_allow_merge_if_all_discussions_are_resolved":false,"printing_merge_request_link_enabled":true,"merge_method":"merge","auto_devops_enabled":false,"auto_devops_deploy_strategy":"continuous","permissions":{"project_access":{"access_level":40,"notification_level":3},"group_access":{"access_level":50,"notification_level":3}}}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- keep-alive
Content-Length:
- '2438'
Content-Type:
- application/json
Date:
- Thu, 25 Jul 2019 14:50:21 GMT
Etag:
- W/"5f1e4fcca4583b6f2459404a4c4dbf55"
Referrer-Policy:
- strict-origin-when-cross-origin
Server:
- nginx
Strict-Transport-Security:
- max-age=31536000
Vary:
- Origin
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- SAMEORIGIN
X-Request-Id:
- 1dzdzJWKJw3
X-Runtime:
- '0.462738'
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-type:
- application/json
PRIVATE-TOKEN:
- DKkdC5JmKWWZgXZGzg83
User-Agent:
- python-requests/2.22.0
method: GET
uri: http://localhost/api/v4/projects/33/labels
response:
body:
string: '[{"id":1,"name":"change_me","color":"#0000FF","description":"Old description","text_color":"#FFFFFF","open_issues_count":0,"closed_issues_count":0,"open_merge_requests_count":0,"subscribed":false,"priority":null,"is_project_label":true},{"id":2,"name":"delete_me","color":"#000000","description":"if
you can","text_color":"#FFFFFF","open_issues_count":0,"closed_issues_count":0,"open_merge_requests_count":0,"subscribed":false,"priority":null,"is_project_label":true}]'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- keep-alive
Content-Length:
- '468'
Content-Type:
- application/json
Date:
- Thu, 25 Jul 2019 14:50:21 GMT
Etag:
- W/"8e6b3532b505048fc2757c7d659303bc"
Link:
- <http://gitlab.example.com/api/v4/projects/33/labels?id=33&page=1&per_page=20>;
rel="first", <http://gitlab.example.com/api/v4/projects/33/labels?id=33&page=1&per_page=20>;
rel="last"
Referrer-Policy:
- strict-origin-when-cross-origin
Server:
- nginx
Strict-Transport-Security:
- max-age=31536000
Vary:
- Origin
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- SAMEORIGIN
X-Next-Page:
- ''
X-Page:
- '1'
X-Per-Page:
- '20'
X-Prev-Page:
- ''
X-Request-Id:
- 9Vrw4k2m2G1
X-Runtime:
- '0.208284'
X-Total:
- '2'
X-Total-Pages:
- '1'
status:
code: 200
message: OK
- request:
body: '{"name": "change_me", "color": "green"}'
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '39'
Content-type:
- application/json
PRIVATE-TOKEN:
- DKkdC5JmKWWZgXZGzg83
User-Agent:
- python-requests/2.22.0
method: PUT
uri: http://localhost/api/v4/projects/33/labels
response:
body:
string: '{"id":1,"name":"change_me","color":"#008000","description":"Old description","text_color":"#FFFFFF","open_issues_count":0,"closed_issues_count":0,"open_merge_requests_count":0,"subscribed":false,"priority":null,"is_project_label":true}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- keep-alive
Content-Length:
- '235'
Content-Type:
- application/json
Date:
- Thu, 25 Jul 2019 14:50:21 GMT
Etag:
- W/"301c6e74c1b2598952438d98c3d6a73a"
Referrer-Policy:
- strict-origin-when-cross-origin
Server:
- nginx
Strict-Transport-Security:
- max-age=31536000
Vary:
- Origin
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- SAMEORIGIN
X-Request-Id:
- nmxiXlrhge3
X-Runtime:
- '0.115931'
status:
code: 200
message: OK
- request:
body: '{"name": "change_me", "description": "New description"}'
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '55'
Content-type:
- application/json
PRIVATE-TOKEN:
- DKkdC5JmKWWZgXZGzg83
User-Agent:
- python-requests/2.22.0
method: PUT
uri: http://localhost/api/v4/projects/33/labels
response:
body:
string: '{"id":1,"name":"change_me","color":"#008000","description":"New description","text_color":"#FFFFFF","open_issues_count":0,"closed_issues_count":0,"open_merge_requests_count":0,"subscribed":false,"priority":null,"is_project_label":true}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- keep-alive
Content-Length:
- '235'
Content-Type:
- application/json
Date:
- Thu, 25 Jul 2019 14:50:21 GMT
Etag:
- W/"426b02063351d019fe430f67f6c8348a"
Referrer-Policy:
- strict-origin-when-cross-origin
Server:
- nginx
Strict-Transport-Security:
- max-age=31536000
Vary:
- Origin
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- SAMEORIGIN
X-Request-Id:
- sOZm9ZwOjf1
X-Runtime:
- '0.127854'
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '0'
Content-type:
- application/json
PRIVATE-TOKEN:
- DKkdC5JmKWWZgXZGzg83
User-Agent:
- python-requests/2.22.0
method: DELETE
uri: http://127.0.0.1:3000/api/v4/projects/33/labels/delete_me
response:
body:
string: ''
headers:
Cache-Control:
- no-cache
Connection:
- keep-alive
Date:
- Thu, 25 Jul 2019 14:50:21 GMT
Referrer-Policy:
- strict-origin-when-cross-origin
Server:
- nginx
Strict-Transport-Security:
- max-age=31536000
Vary:
- Origin
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- SAMEORIGIN
X-Request-Id:
- JRHvodEtKp4
X-Runtime:
- '0.232001'
status:
code: 204
message: No Content
- request:
body: '{"name": "new_label", "color": "red"}'
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '37'
Content-type:
- application/json
PRIVATE-TOKEN:
- DKkdC5JmKWWZgXZGzg83
User-Agent:
- python-requests/2.22.0
method: POST
uri: http://localhost/api/v4/projects/33/labels
response:
body:
string: '{"id":3,"name":"new_label","color":"#FF0000","description":null,"text_color":"#FFFFFF","open_issues_count":0,"closed_issues_count":0,"open_merge_requests_count":0,"subscribed":false,"priority":null,"is_project_label":true}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- keep-alive
Content-Length:
- '222'
Content-Type:
- application/json
Date:
- Thu, 25 Jul 2019 14:50:22 GMT
Etag:
- W/"40cc8f2b45256b46bffe0bef77f6ef06"
Referrer-Policy:
- strict-origin-when-cross-origin
Server:
- nginx
Strict-Transport-Security:
- max-age=31536000
Vary:
- Origin
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- SAMEORIGIN
X-Request-Id:
- P2kj9aJ7kN7
X-Runtime:
- '0.106587'
status:
code: 201
message: Created
version: 1
|