3 ms·
What if my resource is indexed by GUID and I want to build a REST API?
by dcow 5y ago
What if my resource is indexed by GUID and I want to build a REST API?
- MaxBarraclough 5y agoThat wouldn't force you to use query strings. I agree it's not always a mistake for a URL to contain an ID value of some sort. How else would online shops assign a URL to each product they offer?
- mewpmewp2 5y agoFor REST APIs standard would be /resources?query=something&offset=50&limit=50 etc for list of resources. And single resource. /resources/:resourceId, so a bit different for APIs as opposed to user facing urls. While for a single resource when user facing it would be /resource/human-readable-resource-slug.