james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rouaz...@apache.org
Subject [james-project] 01/06: JAMES-2715 correct DommainMappingRoutes document
Date Mon, 29 Apr 2019 08:09:33 GMT
This is an automated email from the ASF dual-hosted git repository.

rouazana pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 229ab266369f7a0f4f3248020028c658f86c2ce3
Author: Tran Tien Duc <dtran@linagora.com>
AuthorDate: Fri Apr 26 16:58:34 2019 +0700

    JAMES-2715 correct DommainMappingRoutes document
---
 .../java/org/apache/james/webadmin/routes/DomainMappingsRoutes.java    | 1 +
 src/site/markdown/server/manage-webadmin.md                            | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/server/protocols/webadmin/webadmin-data/src/main/java/org/apache/james/webadmin/routes/DomainMappingsRoutes.java
b/server/protocols/webadmin/webadmin-data/src/main/java/org/apache/james/webadmin/routes/DomainMappingsRoutes.java
index 5344b5c..225aac4 100644
--- a/server/protocols/webadmin/webadmin-data/src/main/java/org/apache/james/webadmin/routes/DomainMappingsRoutes.java
+++ b/server/protocols/webadmin/webadmin-data/src/main/java/org/apache/james/webadmin/routes/DomainMappingsRoutes.java
@@ -153,6 +153,7 @@ public class DomainMappingsRoutes implements Routes {
     })
     @ApiResponses(value = {
         @ApiResponse(code = HttpStatus.OK_200, message = "Domain mappings.", responseContainer
= "List"),
+        @ApiResponse(code = HttpStatus.BAD_REQUEST_400, message = "Domain name is invalid"),
         @ApiResponse(code = HttpStatus.NOT_FOUND_404, message = "Not existing mappings."),
         @ApiResponse(code = HttpStatus.INTERNAL_SERVER_ERROR_500,
             message = "Internal server error - Something went bad on the server side.")
diff --git a/src/site/markdown/server/manage-webadmin.md b/src/site/markdown/server/manage-webadmin.md
index a1b9a4a..0d205d7 100644
--- a/src/site/markdown/server/manage-webadmin.md
+++ b/src/site/markdown/server/manage-webadmin.md
@@ -1439,7 +1439,8 @@ Response codes:
 
  - 200: OK
  - 400: The `fromDomain` resource name is invalid
- 
+ - 404: The `fromDomain` resource name is not found
+
 ### Adding a domain mapping
 ```
 curl -XPUT http://ip:port/domainMappings/sourceDomain.tld


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message