couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Metin Akat <akat.me...@gmail.com>
Subject Re: More than one URL for a single resource
Date Thu, 03 Sep 2009 07:45:01 GMT
Why not use the pretty url as a uuid?

On Thu, Sep 3, 2009 at 6:13 AM, Jesse Hallett<hallettj@gmail.com> wrote:
> 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
View raw message