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
