summaryrefslogtreecommitdiff
path: root/src/mailman/rest/docs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Add the self_link for bans and factor some codeAurélien Bompard2016-01-131-2/+14
|
* Expose the ban list on the REST APIAurélien Bompard2016-01-131-0/+81
|
* Refactor API differences into a separate class.Barry Warsaw2016-01-131-28/+0
| | | | | | | | | | | We now have an IAPI interface which defines methods to convert to/from UUIDs to their REST representations, and to calculate the API-homed full URL path to a resource. Add implementations API30 and API31 to handle the two different implementations so far. This also simplifies the various path_to() calls. Also: Add support for diff_cover to tox.ini to check that all differences against the master branch have full test coverage.
* Boost coverage.Barry Warsaw2016-01-082-28/+60
|
* Happy New Year.Barry Warsaw2016-01-021-1/+1
|
* Major push for completing issue #121. Now in API 3.1, all UUIDs must be theBarry Warsaw2015-12-301-2/+2
| | | | | | | | | hex representations of a UUID, not the int representation. Also: * Some general code cleanup. * Fix issue 185 (REST server crash when subscribing a user without a preferred address).
* Expose the "bump digest" and "send digest" functionality though the REST APIBarry Warsaw2015-12-221-0/+109
| | | | | | | via the ``<api>/lists/<list-id>/digest`` end-point. GETting this resource returns the ``next_digest_number`` and ``volume`` as the same values accessible through the list's configuraiton resource. POSTing to the resource with either ``send=True``, ``bump=True``, or both invokes the given action.
* Digests improvements:Barry Warsaw2015-12-191-0/+9
| | | | | | | * digestable -> digests_enabled * nondigestable: removed * Exposed digests_enabled, digest_send_periodic, digest_volume_frequency in REST.
* Many improvements to listconf.py.Barry Warsaw2015-12-171-4/+50
| | | | | | | | | | | | | | | | Closes #182 * Improve the documentation, especially in describing how to PUT and PATCH to list configuration subresources. * Improve the return codes for many error corner cases. Specifically, this makes more consistent when a 400 error is returned or a 404 error is returned. * Improve the handling of some weird corner cases, and add tests. * Fix the setting of error response reasons by not trying to .format() into a bytes object (which isn't allowed in Python 3). * Add lots of comments to the code, which improves the readability of all the twisty little turns. * 100% code coverage for listconf.py!
* Make sure that Pendables always have a typeAurélien Bompard2015-12-161-0/+2
|
* Allow a Member's moderation_action to be changed by the REST API.Aurélien Bompard2015-12-082-0/+76
| | | | Cleanups by Barry. Closes !67
* JSON representations for held message now include a ``self_link``.Barry Warsaw2015-11-151-0/+2
|
* REST: add a self_link entry to held messagesAurélien Bompard2015-11-151-0/+1
|
* Rework pagination to fix the 'start' and 'total_size' valuesAurélien Bompard2015-11-043-8/+8
|
* Implement the REST API for <api>/owners.Barry Warsaw2015-09-231-0/+28
|
* Document an attribute.Barry Warsaw2015-09-231-0/+61
| | | | Add a doctest for the `owners` top-level resource.
* * REST API version 3.1 introduced. Mostly backward compatible with versionBarry Warsaw2015-07-182-6/+7
| | | | | | 3.0 except that UUIDs are represented as hex strings instead of 128-bit integers, since the latter are not compatible with all versions of JavaScript.
* * Messages now include a `Message-ID-Hash` as the replacement forBarry Warsaw2015-06-141-3/+6
| | | | | | `X-Message-ID-Hash` although the latter is still included for backward compatibility. Also be sure that all places which add the header use the same algorithm.
* Merge branch 'issue-109' into 'release-3.0'Barry Warsaw2015-06-021-0/+1
| | | | | | | | | | | Closes: #109 * Fix the traceback that occurred when trying to convert a `text/html` subpart to plaintext via the `mimedel` handler. Now, a configuration variable `[mailman]html_to_plain_text_command` in the `mailman.cfg` file defines the command to use. It defaults to `lynx`. (Closes: #109) See merge request !14
* * When creating a user via REST using an address that already exists, butBarry Warsaw2015-05-101-0/+32
| | | | | isn't linked, the address is linked to the new user. Given by Aurélien Bompard.
* Prepare for 3.1.Barry Warsaw2015-05-011-1/+1
| | | | Fix some tests that incorrectly hardcoded "3.0"
* Branch his ready.Barry Warsaw2015-04-171-6/+3
|
* Check pointing new subscription moderation REST API.Barry Warsaw2015-04-172-4/+5
|
* Updates.Barry Warsaw2015-04-161-2/+2
|
* Checkpointing.Barry Warsaw2015-04-161-0/+113
|
* Checkpointing.Barry Warsaw2015-04-162-361/+192
|
* Plumb the subscription policy through the REST API.Barry Warsaw2015-04-151-109/+27
|
* Trunk mergeBarry Warsaw2015-04-073-28/+195
|\
| * Add lots of test for various bits of domain owners.Barry Warsaw2015-04-061-11/+29
| | | | | | | | | | | | | | | | | | | | A little refactoring of list_of_str() into list_of_strings_validator() which is now put in the validators.py module and used in several places. Python 3 super() style. Add some code and tests to catch <domain>/owners references when <domain> doesn't exist.
| * Checkpointing:Barry Warsaw2015-04-062-5/+153
| | | | | | | | | | | | * Cleanups. * Updates to domains and users. * Allow is_server_owner to be PUT.
| * Abhilash's branch, pre-cleaning.Barry Warsaw2015-04-063-25/+26
| |\
| | * add tests, fix docs, remove contact_addressAbhilash Raj2015-03-283-25/+26
| | |
* | | Advertise the subscription policy in the REST APIAurélien Bompard2015-03-311-0/+3
|/ /
* | Replace add_member() with subscribe() helper.Barry Warsaw2015-03-261-3/+2
| |
* | Extended test helper subscribe() which takes an optional email address andBarry Warsaw2015-03-261-0/+13
| | | | | | | | returns the newly created member.
* | * Refactor add_member() so that it uses a RequestRecord namedtuple.Barry Warsaw2015-03-211-12/+12
|/ | | | | | * RequestRecord contains no password key so these are not part of the held requests database any more. * Pending record contains `email` now instead of `address`.
* * Member resource JSON now include the ``member_id`` as a separate key.Barry Warsaw2015-02-132-0/+51
|
* Don't hardcode the Python versionAurélien Bompard2015-02-111-1/+1
|
* * You can now DELETE an address. If the address is linked to a user, theBarry Warsaw2015-02-051-0/+61
| | | | user is not delete, it is just unlinked.
* We don't need the 'six' package any more.Barry Warsaw2015-01-041-3/+2
|
* Bump copyright years.Barry Warsaw2015-01-041-1/+1
|
* * ``$cwd`` is now an additional substitution variable for the ``mailman.cfg``Barry Warsaw2015-01-031-0/+174
| | | | | | | | | | | | | file's ``[paths.*]`` sections. A new ``[paths.here]`` section is added, which puts the ``var_dir`` in ``$cwd``. It is made the default layout. * You can now view the contents of, inject messages into, and delete messages from the various queue directories via the ``<api>/queues`` resource. Also: inject_message() and inject_text() now return the filebase of the file injected into the queue directory.
* * You can access the system configuration via the resource pathBarry Warsaw2014-12-262-0/+34
| | | | | | | | | ``/3.0/system/configuration/<section>``. This returns a dictionary with the keys being the section's variables and the values being their value from ``mailman.cfg`` as verbatim strings. You can get a list of all section names via ``/3.0/system/configuration`` which returns a dictionary containing the ``http_etag`` and the section names as a sorted list under the ``sections`` key. The system configuration resource is read-only.
* Deprecate <api>/system path in favor of <api>/system/versions.Barry Warsaw2014-12-261-7/+7
|
* Remove huge amounts of now unnecessary file boilerplate.Barry Warsaw2014-12-221-3/+0
|
* Trunk merge.Barry Warsaw2014-12-222-6/+128
|\
| * /user sub-resource of the address documented by Aurélien Bompard.Barry Warsaw2014-12-091-11/+124
| |\
| | * Document the new /addresses/<email>/user resourceAurélien Bompard2014-12-091-10/+120
| |/ | | | | | | Fixes LP bug #1400520
| * REST feature: create a user from an existing addressAurélien Bompard2014-12-082-0/+9
| | | | | | | | Fixes LP bug #1312884
* | All the REST tests pass.Barry Warsaw2014-12-158-65/+10
| |