interactions:
- request:
    body: mail_host=example.com
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      content-type: [application/x-www-form-urlencoded]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: POST
    uri: http://localhost:9001/3.1/domains
  response:
    body: {string: ''}
    headers:
      Date: ['Wed, 16 May 2018 01:05:58 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
      content-length: ['0']
      content-type: [application/json; charset=UTF-8]
      location: ['http://localhost:9001/3.1/domains/example.com']
    status: {code: 201, message: Created}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: GET
    uri: http://localhost:9001/3.1/domains/example.com
  response:
    body: {string: '{"alias_domain": null, "description": null, "http_etag": "\"0955c4a2fe5c37a019be0fef3abbb952cdc328a4\"",
        "mail_host": "example.com", "self_link": "http://localhost:9001/3.1/domains/example.com"}'}
    headers:
      Date: ['Wed, 16 May 2018 01:05:58 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
      content-length: ['194']
      content-type: [application/json; charset=UTF-8]
    status: {code: 200, message: OK}
- request:
    body: fqdn_listname=foo%40example.com
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      content-type: [application/x-www-form-urlencoded]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: POST
    uri: http://localhost:9001/3.1/lists
  response:
    body: {string: ''}
    headers:
      Date: ['Wed, 16 May 2018 01:05:58 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
      content-length: ['0']
      content-type: [application/json; charset=UTF-8]
      location: ['http://localhost:9001/3.1/lists/foo.example.com']
    status: {code: 201, message: Created}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: GET
    uri: http://localhost:9001/3.1/lists/foo.example.com
  response:
    body: {string: '{"display_name": "Foo", "fqdn_listname": "foo@example.com", "http_etag":
        "\"4fb667c3d533cf6b2b6faa284a0d5d1302536524\"", "list_id": "foo.example.com",
        "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link":
        "http://localhost:9001/3.1/lists/foo.example.com", "volume": 1}'}
    headers:
      Date: ['Wed, 16 May 2018 01:05:58 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
      content-length: ['294']
      content-type: [application/json; charset=UTF-8]
    status: {code: 200, message: OK}
- request:
    body: list_id=foo.example.com&subscriber=mod%40example.com&display_name=None&role=moderator
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      content-type: [application/x-www-form-urlencoded]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: POST
    uri: http://localhost:9001/3.1/members
  response:
    body: {string: ''}
    headers:
      Date: ['Wed, 16 May 2018 01:05:59 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
      content-length: ['0']
      content-type: [application/json; charset=UTF-8]
      location: ['http://localhost:9001/3.1/members/00000000000000000000000000000094']
    status: {code: 201, message: Created}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: GET
    uri: http://localhost:9001/3.1/lists/foo.example.com/roster/moderator
  response:
    body: {string: '{"entries": [{"address": "http://localhost:9001/3.1/addresses/mod@example.com",
        "delivery_mode": "regular", "display_name": "None", "email": "mod@example.com",
        "http_etag": "\"26c8225a1c49654cc9de7377e561f261ff979f4d\"", "list_id": "foo.example.com",
        "member_id": "00000000000000000000000000000094", "moderation_action": "accept",
        "role": "moderator", "self_link": "http://localhost:9001/3.1/members/00000000000000000000000000000094",
        "user": "http://localhost:9001/3.1/users/00000000000000000000000000000081"}],
        "http_etag": "\"027ad6e0ebed5f1dee954b5477203055ef58ab50\"", "start": 0, "total_size":
        1}'}
    headers:
      Date: ['Wed, 16 May 2018 01:05:59 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
      content-length: ['602']
      content-type: [application/json; charset=UTF-8]
    status: {code: 200, message: OK}
- request:
    body: subscriber=mod%40example.com&list_id=foo.example.com
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      content-type: [application/x-www-form-urlencoded]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: POST
    uri: http://localhost:9001/3.1/members/find
  response:
    body: {string: '{"entries": [{"address": "http://localhost:9001/3.1/addresses/mod@example.com",
        "delivery_mode": "regular", "display_name": "None", "email": "mod@example.com",
        "http_etag": "\"26c8225a1c49654cc9de7377e561f261ff979f4d\"", "list_id": "foo.example.com",
        "member_id": "00000000000000000000000000000094", "moderation_action": "accept",
        "role": "moderator", "self_link": "http://localhost:9001/3.1/members/00000000000000000000000000000094",
        "user": "http://localhost:9001/3.1/users/00000000000000000000000000000081"}],
        "http_etag": "\"027ad6e0ebed5f1dee954b5477203055ef58ab50\"", "start": 0, "total_size":
        1}'}
    headers:
      Date: ['Wed, 16 May 2018 01:05:59 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
      content-length: ['602']
      content-type: [application/json; charset=UTF-8]
    status: {code: 200, message: OK}
- request:
    body: list_id=foo.example.com&subscriber=owner%40example.com&display_name=None&role=owner
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      content-type: [application/x-www-form-urlencoded]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: POST
    uri: http://localhost:9001/3.1/members
  response:
    body: {string: ''}
    headers:
      Date: ['Wed, 16 May 2018 01:05:59 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
      content-length: ['0']
      content-type: [application/json; charset=UTF-8]
      location: ['http://localhost:9001/3.1/members/00000000000000000000000000000095']
    status: {code: 201, message: Created}
- request:
    body: subscriber=owner%40example.com&list_id=foo.example.com
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      content-type: [application/x-www-form-urlencoded]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: POST
    uri: http://localhost:9001/3.1/members/find
  response:
    body: {string: '{"entries": [{"address": "http://localhost:9001/3.1/addresses/owner@example.com",
        "delivery_mode": "regular", "display_name": "None", "email": "owner@example.com",
        "http_etag": "\"6393945e09004f60634740074128c14eed4ac183\"", "list_id": "foo.example.com",
        "member_id": "00000000000000000000000000000095", "moderation_action": "accept",
        "role": "owner", "self_link": "http://localhost:9001/3.1/members/00000000000000000000000000000095",
        "user": "http://localhost:9001/3.1/users/00000000000000000000000000000080"}],
        "http_etag": "\"78d56c5a1cc980c71f532328a42367931b35827e\"", "start": 0, "total_size":
        1}'}
    headers:
      Date: ['Wed, 16 May 2018 01:05:59 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
      content-length: ['602']
      content-type: [application/json; charset=UTF-8]
    status: {code: 200, message: OK}
- request:
    body: list_id=foo.example.com&subscriber=subscriber%40example.com&display_name=None
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      content-type: [application/x-www-form-urlencoded]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: POST
    uri: http://localhost:9001/3.1/members
  response:
    body: {string: '{"http_etag": "\"987f49f8ced74a8ab06183fa99bd7047a1eb005d\"",
        "token": "0000000000000000000000000000000000000072", "token_owner": "subscriber"}'}
    headers:
      Date: ['Wed, 16 May 2018 01:05:59 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
      content-length: ['143']
      content-type: [application/json; charset=UTF-8]
    status: {code: 202, message: Accepted}
- request:
    body: subscriber=subscriber%40example.com&list_id=foo.example.com
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      content-type: [application/x-www-form-urlencoded]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: POST
    uri: http://localhost:9001/3.1/members/find
  response:
    body: {string: '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
        "start": 0, "total_size": 0}'}
    headers:
      Date: ['Wed, 16 May 2018 01:05:59 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
      content-length: ['90']
      content-type: [application/json; charset=UTF-8]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      accept-encoding: ['gzip, deflate']
      authorization: [Basic cmVzdGFkbWluOnJlc3RwYXNz]
      user-agent: [GNU Mailman REST client v3.2.0b3]
    method: DELETE
    uri: http://localhost:9001/3.1/domains/example.com
  response:
    body: {string: ''}
    headers:
      Content-Length: ['0']
      Date: ['Wed, 16 May 2018 01:05:59 GMT']
      Server: [WSGIServer/0.2 CPython/3.6.4+]
    status: {code: 204, message: No Content}
version: 1
