[ https://issues.apache.org/jira/browse/JAMES-2637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16737932#comment-16737932 ]
Rene Cordier edited comment on JAMES-2637 at 1/9/19 7:39 AM: ------------------------------------------------------------- First PR part (PUT route for aliases routes) : [https://github.com/linagora/james-project/pull/2089.] The rest will follow up in a later PR was (Author: rcordier): **First PR part (PUT route for aliases routes) : [https://github.com/linagora/james-project/pull/2089.] The rest will follow up in a later PR > 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