REST and API Design
Alternatively, if the photo ID is important information that needs to be conveyed separately from the somewhat opaque URL, a URI-Template is just the ticket:
{'photos': [1, 2, 3], 'photo_uri_template': 'http://example.com/ph/{id}'}
Again, Resource != Model.
Source: jacobian.org