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" )
Changes the hash of the resource to use the pattern/path, so that links to the resource will not break
PR #50 resolves this issue: https://github.com/ColdBox/coldbox-relax/pull/50