summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mailman/rest/docs/lists.rst3
-rw-r--r--src/mailman/rest/lists.py1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/mailman/rest/docs/lists.rst b/src/mailman/rest/docs/lists.rst
index 610244968..7f0abeb26 100644
--- a/src/mailman/rest/docs/lists.rst
+++ b/src/mailman/rest/docs/lists.rst
@@ -23,6 +23,7 @@ Create a mailing list in a domain and it's accessible via the API.
display_name: Test-one
fqdn_listname: test-one@example.com
http_etag: "..."
+ list_id: test-one.example.com
list_name: test-one
mail_host: example.com
member_count: 0
@@ -40,6 +41,7 @@ You can also query for lists from a particular domain.
display_name: Test-one
fqdn_listname: test-one@example.com
http_etag: "..."
+ list_id: test-one.example.com
list_name: test-one
mail_host: example.com
member_count: 0
@@ -89,6 +91,7 @@ It is also available via the location given in the response.
display_name: Test-two
fqdn_listname: test-two@example.com
http_etag: "..."
+ list_id: test-two.example.com
list_name: test-two
mail_host: example.com
member_count: 0
diff --git a/src/mailman/rest/lists.py b/src/mailman/rest/lists.py
index f25133211..a45fa94a7 100644
--- a/src/mailman/rest/lists.py
+++ b/src/mailman/rest/lists.py
@@ -107,6 +107,7 @@ class _ListBase(resource.Resource, CollectionMixin):
return dict(
display_name=mlist.display_name,
fqdn_listname=mlist.fqdn_listname,
+ list_id=mlist.list_id,
list_name=mlist.list_name,
mail_host=mlist.mail_host,
member_count=mlist.members.member_count,