Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 508 Bytes

support-non-id-dereferencing-for-convenience.md

File metadata and controls

14 lines (11 loc) · 508 Bytes

Support non-id dereferencing for convenience

In some cases it may be inconvenient for end-users to provide IDs to identify a resource. For example, a user may think in terms of a Heroku app name, but that app may be identified by a UUID. In these cases you may want to accept both an id or name, e.g.:

$ curl https://service.com/apps/{app_id_or_name}
$ curl https://service.com/apps/97addcf0-c182
$ curl https://service.com/apps/www-prod

Do not accept only names to the exclusion of IDs.