[ https://issues.apache.org/jira/browse/JAMES-2866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tellier Benoit updated JAMES-2866: ---------------------------------- Description: You can setup your route by using spark-java library or any other light HTTP server library written in Java as you think it's better. JSON serialization for JAMES-2853 POJOs is needed as well. No data stability required (not an external API, it's for testing purposes). {code:java} PUT /smtpBehaviors - 204: ok, created GET /smtpBehaviors - 200 OK, JSON: [ { "command": "RCPT", "condition": { "operator": "contains", "matchingValue": "pippin got the ring" }, "response": { "code": 504, "rejected": false, "message": "server is out of memory" }, "numberOfAnswer": 7 }, ... ] DELETE /smtpBehaviors - 204: ok, cleared the mock setups {code} was: You can setup your route by using spark-java library or any other light HTTP server library written in Java as you think it's better. JSON serialization for JAMES-2853 POJOs is needed as well. No data stability required (not an external API, it's for testing purposes). {code:java} POST /smtpBehaviors - 204: ok, created GET /smtpBehaviors - 200 OK, JSON: [ { "command": "RCPT", "condition": { "operator": "contains", "matchingValue": "pippin got the ring" }, "response": { "code": 504, "rejected": false, "message": "server is out of memory" }, "numberOfAnswer": 7 }, ... ] DELETE /smtpBehaviors - 204: ok, cleared the mock setups {code} > MockSMTP server behaviors setup over HTTP > ----------------------------------------- > > Key: JAMES-2866 > URL: https://issues.apache.org/jira/browse/JAMES-2866 > Project: James Server > Issue Type: Sub-task > Components: Remote Delivery, tests > Reporter: Tellier Benoit > Assignee: Tellier Benoit > Priority: Major > > You can setup your route by using spark-java library or any other light HTTP > server library written in Java as you think it's better. > JSON serialization for JAMES-2853 POJOs is needed as well. No data stability > required (not an external API, it's for testing purposes). > {code:java} > PUT /smtpBehaviors > - 204: ok, created > GET /smtpBehaviors > - 200 OK, JSON: > [ > { > "command": "RCPT", > "condition": { > "operator": "contains", > "matchingValue": "pippin got the ring" > }, > "response": { > "code": 504, > "rejected": false, > "message": "server is out of memory" > }, > "numberOfAnswer": 7 > }, > ... > ] > DELETE /smtpBehaviors > - 204: ok, cleared the mock setups > {code} -- This message was sent by Atlassian Jira (v8.3.2#803003) --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org