{"id":49,"date":"2023-05-05T12:30:33","date_gmt":"2023-05-05T12:30:33","guid":{"rendered":"https:\/\/blog.gwadej.org\/micro-musings\/?p=49"},"modified":"2023-05-05T23:04:10","modified_gmt":"2023-05-05T23:04:10","slug":"data-ids-part-2","status":"publish","type":"post","link":"https:\/\/blog.gwadej.org\/micro-musings\/2023\/05\/data-ids-part-2\/","title":{"rendered":"Data IDs, part 2"},"content":{"rendered":"\n<p>Following up on the different types of IDs from last time, it&#8217;s often useful to have an ID that can be sent in a URL. The unique ID may not be appropriate for many reasons.<\/p>\n\n\n\n<p> Many systems use something called a slug for this purpose. A slug must be unique, but can change under some circumstances. It should be easier for a human to work with than the raw ID.<\/p>\n\n\n\n<p>None of what I&#8217;ve described covers different revisions of the data, needed for historical diffs.<\/p>\n\n\n\n<p>Update: approach different IDs for different uses. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Following up on the different types of IDs from last time, it&#8217;s often useful to have an ID that can be sent in a URL. The unique ID may not be appropriate for many reasons. Many systems use something called a slug for this purpose. A slug must be unique, but can change under some\u2026 <span class=\"read-more\"><a href=\"https:\/\/blog.gwadej.org\/micro-musings\/2023\/05\/data-ids-part-2\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[22,29,7,30,27],"_links":{"self":[{"href":"https:\/\/blog.gwadej.org\/micro-musings\/wp-json\/wp\/v2\/posts\/49"}],"collection":[{"href":"https:\/\/blog.gwadej.org\/micro-musings\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.gwadej.org\/micro-musings\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.gwadej.org\/micro-musings\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.gwadej.org\/micro-musings\/wp-json\/wp\/v2\/comments?post=49"}],"version-history":[{"count":3,"href":"https:\/\/blog.gwadej.org\/micro-musings\/wp-json\/wp\/v2\/posts\/49\/revisions"}],"predecessor-version":[{"id":54,"href":"https:\/\/blog.gwadej.org\/micro-musings\/wp-json\/wp\/v2\/posts\/49\/revisions\/54"}],"wp:attachment":[{"href":"https:\/\/blog.gwadej.org\/micro-musings\/wp-json\/wp\/v2\/media?parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.gwadej.org\/micro-musings\/wp-json\/wp\/v2\/categories?post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.gwadej.org\/micro-musings\/wp-json\/wp\/v2\/tags?post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}