diff options
| author | Barry Warsaw | 2011-08-30 22:04:14 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2011-08-30 22:04:14 -0400 |
| commit | 232ac1d8af1b6d483a1bd7aa2bc5ae15e0450bdf (patch) | |
| tree | e1e0b843a849bfaccf2d006d9ee1340a99a1eee1 /src/mailman/rest/docs/lists.rst | |
| parent | 0664713d4f7e30b0b56b1ce00ccf3367f416c901 (diff) | |
| parent | d1404b057df7f7ce20df7dac13eb18eba4eb02b4 (diff) | |
| download | mailman-232ac1d8af1b6d483a1bd7aa2bc5ae15e0450bdf.tar.gz mailman-232ac1d8af1b6d483a1bd7aa2bc5ae15e0450bdf.tar.zst mailman-232ac1d8af1b6d483a1bd7aa2bc5ae15e0450bdf.zip | |
Diffstat (limited to 'src/mailman/rest/docs/lists.rst')
| -rw-r--r-- | src/mailman/rest/docs/lists.rst | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mailman/rest/docs/lists.rst b/src/mailman/rest/docs/lists.rst index fd96507c3..c412f6edc 100644 --- a/src/mailman/rest/docs/lists.rst +++ b/src/mailman/rest/docs/lists.rst @@ -30,6 +30,26 @@ Create a mailing list in a domain and it's accessible via the API. start: 0 total_size: 1 +You can also query for lists from a particular domain. +:: + + >>> dump_json('http://localhost:9001/3.0/domains/example.com/lists') + entry 0: + fqdn_listname: test-one@example.com + http_etag: "..." + list_name: test-one + mail_host: example.com + real_name: Test-one + self_link: http://localhost:9001/3.0/lists/test-one@example.com + http_etag: "..." + start: 0 + total_size: 1 + + >>> dump_json('http://localhost:9001/3.0/domains/no.example.org/lists') + Traceback (most recent call last): + ... + HTTPError: HTTP Error 404: 404 Not Found + Creating lists via the API ========================== |
