gregmac / NServiceMVC

A lightweight framework enabling the creation of REST services within ASP.NET MVC 3
MIT License
3 stars 2 forks source link

Split URL into separate inputs on metadata #10

Open gregmac opened 12 years ago

gregmac commented 12 years ago

Instead of one big text box, have text boxes for each URL segment.

Ex code:

"devices/{deviceid}/supply/{id}".replace(/(\{([a-z0-9]+)\})/g, '<input type="text" placeholder="$1" url-attr="$2" />')