XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.4.0
    • Remote Delivery, tests
    • None

    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).

      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
      

      Attachments

        Activity

          People

            btellier Benoit Tellier
            btellier Benoit Tellier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: