I'm developing a Q&A site.
I'm using uuid for the id of questions, and will use that for the url as well.
Question data
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"title": "This is a question",
"content": "How are you?"
}
URL
https://example.com/questions/550e8400-e29b-41d4-a716-446655440000
However, I have never seen a website that includes the UUID in the URL. For example, a url of a question in stackoverflow is something like https://stackoverflow.com/questions/12345678/this-is-a-question
.
Is it a bad practice?
Aucun commentaire:
Enregistrer un commentaire