Commit 92c8fc2b authored by Barry Warsaw's avatar Barry Warsaw

Show owners and moderators.

parent a7d8daeb
......@@ -125,3 +125,47 @@ address. Anna and Cris subscribe to this new mailing list.
resource_type_link: http://localhost:8001/3.0/#members
start: 0
total_size: 5
Owners and moderators
=====================
Mailing list owners and moderators also show up in the REST API. Cris becomes
an owner of the alpha mailing list and Dave becomes a moderator of the
test-one mailing list.
>>> subscribe(mlist_one, 'Cris', MemberRole.owner)
>>> subscribe(mlist_two, 'Dave', MemberRole.moderator)
>>> dump_json('http://localhost:8001/3.0/members')
entry 0:
http_etag: ...
resource_type_link: http://localhost:8001/3.0/#member
self_link: http://localhost:8001/3.0/lists/[email protected]/moderator/[email protected]
entry 1:
http_etag: ...
resource_type_link: http://localhost:8001/3.0/#member
self_link: http://localhost:8001/3.0/lists/[email protected]/member/[email protected]
entry 2:
http_etag: ...
resource_type_link: http://localhost:8001/3.0/#member
self_link: http://localhost:8001/3.0/lists/[email protected]/member/[email protected]
entry 3:
http_etag: ...
resource_type_link: http://localhost:8001/3.0/#member
self_link: http://localhost:8001/3.0/lists/[email protected]/owner/[email protected]
entry 4:
http_etag: ...
resource_type_link: http://localhost:8001/3.0/#member
self_link: http://localhost:8001/3.0/lists/[email protected]/member/[email protected]
entry 5:
http_etag: ...
resource_type_link: http://localhost:8001/3.0/#member
self_link: http://localhost:8001/3.0/lists/[email protected]/member/[email protected]
entry 6:
http_etag: ...
resource_type_link: http://localhost:8001/3.0/#member
self_link: http://localhost:8001/3.0/lists/[email protected]/member/[email protected]
resource_type_link: http://localhost:8001/3.0/#members
start: 0
total_size: 7
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment