Tuesday 9 May 2017

How WSO2 API manager invokes Nodejs API with path parameters?

I have a nodejs API with path parameters :

app.get('/account/:accountNumber', cors(), function (req, res) {
            accountService.findSubmissionSummariesByAccount(req.params.accountNumber).then(function(data){
        console.log("app response =>"+data);
        res.send(data);
    })
});//API-2 ends

I am trying to invoke this using wso2 API manager and expose it as an API from WSO2. This API manager takes path parameters in Java style, so in that case my URI will be something like this /account/{accountNumber}

Now how to call the Nodejs API which accepts path parameters in different format (: instead of curly braces)?



via Amit Pamecha

No comments:

Post a Comment