generate optional REST-style URIs