Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7946623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:12:34+00:00 2026-06-04T01:12:34+00:00

I am using node and express. To register a controller I call: app.get(‘/user/:id’, function

  • 0

I am using node and express. To register a controller I call:

app.get('/user/:id', function (req, res) {...});  

But I would like to do it the rfc-6570 way:

app.get('/user/{id}', function (req, res) {...});

I googled just an implementation in python on google code, but found nothing (except the dead link on google code to http://www.snellspace.com/wp/?p=831) for JavaScript.

URI templating in general is not so easy as it looks on the first sight. Have a look on the examples in the RFC.

PS: I will need the URI templates on the client, too.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T01:12:36+00:00Added an answer on June 4, 2026 at 1:12 am

    I’ve been cleaning up the implementations list at http://code.google.com/p/uri-templates/wiki/Implementations – there is a JS one at https://github.com/marc-portier/uri-templates but I’m not sure of whether it implements the RFC, nor of what its quality is.

    Note that we’ve started publishing tests here:
    https://github.com/uri-templates/uritemplate-test

    So if you want to check it, you could start there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following express node.js app. It's using the 'redis' npm package. app.get(/test,function(req,res){
Using Jade + Express + Node.js + Mongoose + MongoDB for my app, but
I'm using node.js and the less compiler middleware: app.configure(function() { // ... app.use(express.compiler({ src:
I have a Node.js Express app that I'm hosting on Nodejitsu. I'm already using
I'm using node, express and connect for a simple app and have basic HTTP
I am building an app on node.js using express, and node-mysql driver. There is
I'm using Node.JS and Express web framework, I have a problem with the res.render()
I've already seen Uploading images using Node.js, Express, and Mongoose but I'm using an
I am currently using the following versions of node & express (ubuntu): node: 0.6.12
I'm using Node.js with Express, Connect, and Jade. I want to provide an absolute

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.