[ https://issues.apache.org/jira/browse/JAMES-2637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16740038#comment-16740038 ]
Rene Cordier commented on JAMES-2637: ------------------------------------- Fix for first PR (got mixed the other way around between source and destination for the mapping) : https://github.com/linagora/james-project/pull/2099 > Webadmin CRUD for RRT aliases > ----------------------------- > > Key: JAMES-2637 > URL: https://issues.apache.org/jira/browse/JAMES-2637 > Project: James Server > Issue Type: New Feature > Components: RRT, webadmin > Reporter: Tellier Benoit > Priority: Major > > We should be able to update aliases using the webadmin protocol > Here is the proposed API: > {code:java} > PUT /address/aliases/b...@domain.tld/sources/bob-al...@domain.tld > Adds a `bob-alias` alias pointing to `b...@domain.tld` main mail address > 204 > 400 if the alias source (`bob-al...@domain.tld`) is contained in > UsersRepository > 400 if source or destination domain is not handled by James > No content > {code} > (implement PUT in a separate pull request as this is an emergency?) > {code:java} > GET /address/aliases > Returns the mailAddresses having aliases configured. > 200 > ["b...@domain.tld", "ced...@domain.tld"] > {code} > {code:java} > DELETE /address/aliases/b...@domain.tld/sources/bob-al...@domain.tld > Deletes the `bob-alias` alias pointing to `b...@domain.tld` main mail address > 204 > No content > {code} > {code:java} > GET /address/aliases/b...@domain.tld > Will return all the aliases pointing to b...@domain.tld main mail address > 200 > [ > {"source":"bob-al...@domain.tld"}, > ... > ] > {code} > Create a `AliasRoutes` class in `/server/protocols/webadmin/webadmin-data` > and the corresponding tests using the MemoryRecipientRewriteTable. > Have a look to `ForwardsRoutes` for guidance -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org