{"id":3696,"date":"2011-08-15T18:43:56","date_gmt":"2011-08-15T23:43:56","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=3696"},"modified":"2011-08-15T18:44:16","modified_gmt":"2011-08-15T23:44:16","slug":"history-of-the-stack-exchange-api-mistakes","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2011\/08\/15\/history-of-the-stack-exchange-api-mistakes\/","title":{"rendered":"History Of The Stack Exchange API, Mistakes"},"content":{"rendered":"<p><a href=\"http:\/\/kevinmontrose.com\/2011\/08\/14\/history-of-the-stack-exchange-api-mistakes\/\">Kevin Montrose<\/a> (via <a href=\"http:\/\/www.reddit.com\/r\/programming\/comments\/jifar\/history_of_the_stackexchange_api_mistakes\/\">Reddit<\/a>):<\/p>\n<blockquote cite=\"http:\/\/kevinmontrose.com\/2011\/08\/14\/history-of-the-stack-exchange-api-mistakes\/\"><p>This led to the situation where question bodies are safe to embed directly, but question titles are not; user about mes, but not display names; and so on.  Ideally, everything would be safe to embed directly except in certain rare circumstances.<\/p>\n<p>This mistake is a consequence of how we store the underlying data.  It just so happens that we encode question titles and user display names &ldquo;just in time&rdquo;, while question bodies and user about mes are stored pre-rendered.<\/p><\/blockquote>\n<p>I&rsquo;d love to see more articles like this.<\/p>","protected":false},"excerpt":{"rendered":"<p>Kevin Montrose (via Reddit): This led to the situation where question bodies are safe to embed directly, but question titles are not; user about mes, but not display names; and so on. Ideally, everything would be safe to embed directly except in certain rare circumstances. This mistake is a consequence of how we store the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-3696","post","type-post","status-publish","format-standard","hentry","category-programming-category"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/3696","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=3696"}],"version-history":[{"count":3,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/3696\/revisions"}],"predecessor-version":[{"id":3699,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/3696\/revisions\/3699"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=3696"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=3696"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=3696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}