The Resource URL changes for every code change

Description

A hash is used to create the resource URL, which means that it changes every time we change anything in that Resource (in the Relax.cfc file):
https://github.com/ColdBox/coldbox-relax/blob/development/modules/relax/models/DSLService.cfc#L146

Example:
http://api.local/relax/Home/resourceDoc/resourceID/2E2535B2651C23F566D049F49DDD0996/print/relax
The part that changes is this: "2E2535B2651C23F566D049F49DDD0996".

Having a permalink to a single resource is very important (to us at least) because it allows us to send that link to others and allow them to see the updated version.

It would be good to avoid using a hash, and rely on a more permanent link. Perhaps instead of turning the whole thing into a string and hashing it, a hash of the endpoint could be used:
hash( "/path/to/api/endpoint:id" )

Environment

None

Activity

Show:
Jon Clausen
March 3, 2016, 1:19 PM

Changes the hash of the resource to use the pattern/path, so that links to the resource will not break

Jon Clausen
March 3, 2016, 4:53 PM
Fixed

Assignee

Unassigned

Reporter

Evagoras Charalambous

Labels

None

Components

Fix versions

Priority

Major