title: How to pass string variable as parameter to REST API call using node js
body: <pre><code>var express = require('express');
  var app = express();
  
  // Get Pricing details from subscription
  app.get('/billingv2/resourceUri/:resourceUri', function(req, res) {
  
      var pricingDetail = {}
  
      pricingDetail.resourceUri = req.params.resourceUri;
      pricingDetail.chargeAmount = '25.0000';
      pricingDetail.chargeAmountUnit = 'per hour';
      pricingDetail.currencyCode = 'USD';
  
      res.send(pricingDetail); // send json response
  });
  
  app.listen(8080);
  </code></pre>
  
  <p>I need to call the above API using the string parameter <code>vm/hpcloud/nova/standard.small</code>.
  Please note that <code>vm/hpcloud/nova/standard.small</code> is a single string param.</p>