I Multiply Happiness by Sharing!

NODE JS Routes and PowerShell Parameterization

While working on Microservice development using NODE JS and PowerShell I have got stumped on Parameterization issue. So far I was working with single parameter all went fine and now got a new scenario where I need to work with two parameters with space as well. Interesting right? Yes, I meant the white space in the routes.

Look at this now!

http://localhost:3000/DisplayName/Chendrayan Venkatesan – Which turns out as http://localhost:3000/DisplayName/Chendrayan%20Venkatesan – Expected but didn’t work. Here my display name Chendrayan Venkatesan should be passed in routes as parameter value for PowerShell script