interactions:
- request:
    body: null
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate
      Connection:
      - keep-alive
      Content-type:
      - application/json
      PRIVATE-TOKEN:
      - DKkdC5JmKWWZgXZGzg83
      User-Agent:
      - python-gitlab/1.15.0
    method: GET
    uri: http://localhost/api/v4/projects/test%2Fproject_milestones
  response:
    body:
      string: '{"id":39,"description":"","name":"project_milestones","name_with_namespace":"test
        / project_milestones","path":"project_milestones","path_with_namespace":"test/project_milestones","created_at":"2020-01-16T10:00:58.670Z","default_branch":null,"tag_list":[],"ssh_url_to_repo":"git@gitlab.example.com:test/project_milestones.git","http_url_to_repo":"http://gitlab.example.com/test/project_milestones.git","web_url":"http://gitlab.example.com/test/project_milestones","readme_url":null,"avatar_url":null,"star_count":0,"forks_count":0,"last_activity_at":"2020-01-16T10:00:58.670Z","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/39","issues":"http://gitlab.example.com/api/v4/projects/39/issues","merge_requests":"http://gitlab.example.com/api/v4/projects/39/merge_requests","repo_branches":"http://gitlab.example.com/api/v4/projects/39/repository/branches","labels":"http://gitlab.example.com/api/v4/projects/39/labels","events":"http://gitlab.example.com/api/v4/projects/39/events","members":"http://gitlab.example.com/api/v4/projects/39/members"},"empty_repo":true,"archived":false,"visibility":"private","resolve_outdated_diff_discussions":false,"container_registry_enabled":true,"container_expiration_policy":{"cadence":"7d","enabled":false,"keep_n":null,"older_than":null,"name_regex":null,"next_run_at":"2020-01-23T10:00:58.945Z"},"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":true,"lfs_enabled":true,"creator_id":1,"import_status":"none","import_error":null,"open_issues_count":0,"runners_token":"wUhmrEt1qe5YVWba2rte","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":true,"only_allow_merge_if_all_discussions_are_resolved":false,"remove_source_branch_after_merge":true,"printing_merge_request_link_enabled":true,"merge_method":"merge","suggestion_commit_message":null,"auto_devops_enabled":true,"auto_devops_deploy_strategy":"continuous","autoclose_referenced_issues":true,"permissions":{"project_access":null,"group_access":{"access_level":50,"notification_level":3}},"repository_storage":"default"}'
    headers:
      Cache-Control:
      - max-age=0, private, must-revalidate
      Connection:
      - keep-alive
      Content-Length:
      - '2717'
      Content-Type:
      - application/json
      Date:
      - Thu, 16 Jan 2020 10:10:40 GMT
      Etag:
      - W/"12a9bdded3546be7a1f87c9a472648cd"
      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:
      - 5Z8CVvwH1d9
      X-Runtime:
      - '0.900230'
    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-gitlab/1.15.0
    method: GET
    uri: http://localhost/api/v4/projects/39/milestones
  response:
    body:
      string: '[{"id":5,"iid":2,"project_id":39,"title":"delete_me_milestone","description":"Delete
        me!","state":"active","created_at":"2020-01-16T10:04:24.323Z","updated_at":"2020-01-16T10:04:24.323Z","due_date":null,"start_date":null,"web_url":"http://gitlab.example.com/test/project_milestones/-/milestones/2"},{"id":4,"iid":1,"project_id":39,"title":"existing_milestone","description":"Existing
        milestone","state":"active","created_at":"2020-01-16T10:03:47.805Z","updated_at":"2020-01-16T10:03:47.805Z","due_date":"2021-01-23","start_date":"2020-01-23","web_url":"http://gitlab.example.com/test/project_milestones/-/milestones/1"}]'
    headers:
      Cache-Control:
      - max-age=0, private, must-revalidate
      Connection:
      - keep-alive
      Content-Length:
      - '620'
      Content-Type:
      - application/json
      Date:
      - Thu, 16 Jan 2020 10:10:40 GMT
      Etag:
      - W/"616ade95f43e5070ab27a9363c2773c1"
      Link:
      - <http://gitlab.example.com/api/v4/projects/39/milestones?id=39&page=1&per_page=20&state=all>;
        rel="first", <http://gitlab.example.com/api/v4/projects/39/milestones?id=39&page=1&per_page=20&state=all>;
        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:
      - arW3tCcZy02
      X-Runtime:
      - '0.068153'
      X-Total:
      - '2'
      X-Total-Pages:
      - '1'
    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-gitlab/1.15.0
    method: DELETE
    uri: http://localhost/api/v4/projects/39/milestones/5
  response:
    body:
      string: ''
    headers:
      Cache-Control:
      - no-cache
      Connection:
      - keep-alive
      Date:
      - Thu, 16 Jan 2020 10:10:40 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:
      - 7mEfo4lb5x9
      X-Runtime:
      - '0.611105'
    status:
      code: 204
      message: No Content
- request:
    body: '{"description": "New description"}'
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate
      Connection:
      - keep-alive
      Content-Length:
      - '34'
      Content-type:
      - application/json
      PRIVATE-TOKEN:
      - DKkdC5JmKWWZgXZGzg83
      User-Agent:
      - python-gitlab/1.15.0
    method: PUT
    uri: http://localhost/api/v4/projects/39/milestones/4
  response:
    body:
      string: '{"id":4,"iid":1,"project_id":39,"title":"existing_milestone","description":"New
        description","state":"active","created_at":"2020-01-16T10:03:47.805Z","updated_at":"2020-01-16T10:10:41.267Z","due_date":"2021-01-23","start_date":"2020-01-23","web_url":"http://gitlab.example.com/test/project_milestones/-/milestones/1"}'
    headers:
      Cache-Control:
      - max-age=0, private, must-revalidate
      Connection:
      - keep-alive
      Content-Length:
      - '317'
      Content-Type:
      - application/json
      Date:
      - Thu, 16 Jan 2020 10:10:41 GMT
      Etag:
      - W/"2a8ca6e86a76e2aa45d9965d439db64f"
      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:
      - SKZprW1Nhf6
      X-Runtime:
      - '0.375901'
    status:
      code: 200
      message: OK
- request:
    body: '{"due_date": ""}'
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate
      Connection:
      - keep-alive
      Content-Length:
      - '16'
      Content-type:
      - application/json
      PRIVATE-TOKEN:
      - DKkdC5JmKWWZgXZGzg83
      User-Agent:
      - python-gitlab/1.15.0
    method: PUT
    uri: http://localhost/api/v4/projects/39/milestones/4
  response:
    body:
      string: '{"id":4,"iid":1,"project_id":39,"title":"existing_milestone","description":"New
        description","state":"active","created_at":"2020-01-16T10:03:47.805Z","updated_at":"2020-01-16T10:10:41.375Z","due_date":null,"start_date":"2020-01-23","web_url":"http://gitlab.example.com/test/project_milestones/-/milestones/1"}'
    headers:
      Cache-Control:
      - max-age=0, private, must-revalidate
      Connection:
      - keep-alive
      Content-Length:
      - '309'
      Content-Type:
      - application/json
      Date:
      - Thu, 16 Jan 2020 10:10:41 GMT
      Etag:
      - W/"23ec8860d0e30e3b7cd4d28fdf1deb88"
      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:
      - J5rSVKkEjQa
      X-Runtime:
      - '0.224130'
    status:
      code: 200
      message: OK
- request:
    body: '{"start_date": ""}'
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate
      Connection:
      - keep-alive
      Content-Length:
      - '18'
      Content-type:
      - application/json
      PRIVATE-TOKEN:
      - DKkdC5JmKWWZgXZGzg83
      User-Agent:
      - python-gitlab/1.15.0
    method: PUT
    uri: http://localhost/api/v4/projects/39/milestones/4
  response:
    body:
      string: '{"id":4,"iid":1,"project_id":39,"title":"existing_milestone","description":"New
        description","state":"active","created_at":"2020-01-16T10:03:47.805Z","updated_at":"2020-01-16T10:10:41.597Z","due_date":null,"start_date":null,"web_url":"http://gitlab.example.com/test/project_milestones/-/milestones/1"}'
    headers:
      Cache-Control:
      - max-age=0, private, must-revalidate
      Connection:
      - keep-alive
      Content-Length:
      - '301'
      Content-Type:
      - application/json
      Date:
      - Thu, 16 Jan 2020 10:10:41 GMT
      Etag:
      - W/"3ee8edee7e37022142c42cda03008a2c"
      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:
      - k6l4DNc40Y3
      X-Runtime:
      - '0.069415'
    status:
      code: 200
      message: OK
- request:
    body: '{"state_event": "close"}'
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate
      Connection:
      - keep-alive
      Content-Length:
      - '24'
      Content-type:
      - application/json
      PRIVATE-TOKEN:
      - DKkdC5JmKWWZgXZGzg83
      User-Agent:
      - python-gitlab/1.15.0
    method: PUT
    uri: http://localhost/api/v4/projects/39/milestones/4
  response:
    body:
      string: '{"id":4,"iid":1,"project_id":39,"title":"existing_milestone","description":"New
        description","state":"closed","created_at":"2020-01-16T10:03:47.805Z","updated_at":"2020-01-16T10:33:07.570Z","due_date":null,"start_date":null,"web_url":"http://gitlab.example.com/test/project_milestones/-/milestones/1"}'
    headers:
      Cache-Control:
      - max-age=0, private, must-revalidate
      Connection:
      - keep-alive
      Content-Length:
      - '301'
      Content-Type:
      - application/json
      Date:
      - Thu, 16 Jan 2020 10:33:07 GMT
      Etag:
      - W/"5c79f556bda77992b5d57b4020872d3c"
      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:
      - 7m7vXD038i7
      X-Runtime:
      - '0.207073'
    status:
      code: 200
      message: OK
- request:
    body: '{"title": "new_milestone", "description": "New milestone", "due_date":
      "2023-01-23", "start_date": "2022-01-23"}'
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate
      Connection:
      - keep-alive
      Content-Length:
      - '112'
      Content-type:
      - application/json
      PRIVATE-TOKEN:
      - DKkdC5JmKWWZgXZGzg83
      User-Agent:
      - python-gitlab/1.15.0
    method: POST
    uri: http://localhost/api/v4/projects/39/milestones
  response:
    body:
      string: '{"id":9,"iid":3,"project_id":39,"title":"new_milestone","description":"New
        milestone","state":"active","created_at":"2020-01-16T10:33:07.764Z","updated_at":"2020-01-16T10:33:07.764Z","due_date":"2023-01-23","start_date":"2022-01-23","web_url":"http://gitlab.example.com/test/project_milestones/-/milestones/3"}'
    headers:
      Cache-Control:
      - max-age=0, private, must-revalidate
      Connection:
      - keep-alive
      Content-Length:
      - '310'
      Content-Type:
      - application/json
      Date:
      - Thu, 16 Jan 2020 10:33:07 GMT
      Etag:
      - W/"efbc4b0de41617e7ff70d8b68750e285"
      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:
      - 0MNnoIsePZ9
      X-Runtime:
      - '0.207531'
    status:
      code: 201
      message: Created
version: 1
