/* Order controller. */

/**
 * Get an order.
 * 
 * @param {object} request Request parameters.
 * @param {object} response Response parameters.
 */
exports.get = function(request, response) {
    console.log('get', request.body.orderId);

    setTimeout(function() {
        response.contentType('application/json');
        response.end('{ "orderId": 666, "sent": ' + request.body.orderId + ', "status": 1 }');
    }, 5000);
};

/**
 * Place an order.
 * 
 * @param {object} request Request parameters.
 * @param {object} response Response parameters.
 */
exports.put = function(request, response) {
    console.log('put', request.body);
    
    response.contentType('application/json');
    response.end('{ "orderId": 666 }');
};

@@ -401,16 +401,30 @@
 atus%22: 1
+ %22message%22: %22%22
  %7D');%0A  
@@ -648,20 +648,16 @@
 .body);%0A
-    
 %0A    res

Add message to order return