Arsnael commented on code in PR #2736: URL: https://github.com/apache/james-project/pull/2736#discussion_r2125344001
########## docs/modules/servers/partials/operate/webadmin.adoc: ########## @@ -3516,6 +3516,48 @@ Response codes: * 200: OK * 400: Invalid parameter value +=== Listing sources for a mapping + +This endpoint allows receiving all mappings pointing to a corresponding user. + +.... +curl -XGET http://ip:port/mappings/sources/{userAddress}?type={type} +.... + +Return all mappings of a user where: + +* `userAddress`: is the selected user +* `type`: Type of the mapping. One of `group`, `forward`, `address`, `alias`. Compulsory. + +Response body: + +.... +["gro...@domain.tld","gro...@domain.tld"] +.... + +Response codes: + +* 200: OK +* 400: Invalid parameter value + +=== Deleting sources for a mapping + +This endpoint allows deleting all mappings pointing to a corresponding user. + +.... +curl -XDELEE http://ip:port/mappings/sources/{userAddress}?type={type} Review Comment: ```suggestion curl -XDELETE http://ip:port/mappings/sources/{userAddress}?type={type} ``` ########## src/site/markdown/server/manage-webadmin.md: ########## @@ -3397,6 +3397,48 @@ Response codes: - 200: OK - 400: Invalid parameter value +### Listing sources for a mapping + +This endpoint allows receiving all mappings pointing to a corresponding user. + +``` +curl -XGET http://ip:port/mappings/sources/{userAddress}?type={type} +``` + +Return all mappings of a user where: + + - `userAddress`: is the selected user + - `type`: Type of the mapping. One of `group`, `forward`, `address`, `alias`. Compulsory. + +Response body: + +``` +["gro...@domain.tld","gro...@domain.tld"] +``` + +Response codes: + + - 200: OK + - 400: Invalid parameter value + +### Deleting sources for a mapping + +This endpoint allows deleting all mappings pointing to a corresponding user. + +``` +curl -XDELEE http://ip:port/mappings/sources/{userAddress}?type={type} Review Comment: ```suggestion curl -XDELETE http://ip:port/mappings/sources/{userAddress}?type={type} ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org For additional commands, e-mail: notifications-h...@james.apache.org