couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Hallett <halle...@gmail.com>
Subject Re: More than one URL for a single resource
Date Thu, 03 Sep 2009 03:13:37 GMT
The simplest way to go would be to use the pretty id as the document `_id`
and to skip the uuid altogether.

On Aug 31, 2009 2:59 PM, "Jan Vincent Liwanag" <jvliwanag@gmail.com> wrote:

Hi guys,

Is it possible for one document to redirect to another? For one resource, I
was hoping to have more than one URL. One would be a pretty URL (something
like .../blog/2009_12_1_couchdb_rocks) which points to the same content as
its absolute URL formed using the auto-generated uuid.

If this were possible, the pretty URL would also be a good way to add some
unique constraint to some documents - with it's 'pretty id' implementing the
said constraint.

Thanks,

JV Liwanag

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message