so my json api retrieves posts. On the site that implements the api you of course want to use slugs in the urls, for ux and seo purposes. So my question is, how to deal with it concerning the json-api.
I would send a call
/posts/the-slug-name and expect a result back. But in the result, the
id would be a real id (like a uuid), so do I need to allow the user to also request posts using the uuid
/posts/ab234-....? If so, should the self link and relation links use the uuid or the slug?
I would generally prefer to only allow one way of retrieving the post, but I fear when seeing the id, the user might expect she can use it to get a resource, also I am not sure, but this is probably needed, to fulfill the json api specifications, correct?
Thanks for your help.