Wednesday, November 9, 2016

gui call microservice

http request (GUI) to micro service (node js )

             _request.getJSON("/cfaes", request, bodyObj, function (rqstId, data, err) {


Service.prototype.UpdateScopeOfAudienceBulk = function(req, res, next) {

when done everything, need to return to GUI
put results in req.result

req.result = {};
req.result.count = count;
next(); // this will return back to GUI from micro service

confusing part is "next" is kind of corresponding to err

No comments:

Post a Comment