{"id":6,"date":"2017-02-09T17:02:46","date_gmt":"2017-02-09T17:02:46","guid":{"rendered":"http:\/\/electronicshed.co.uk\/wp\/?p=6"},"modified":"2019-04-13T10:47:19","modified_gmt":"2019-04-13T10:47:19","slug":"wordpress-api","status":"publish","type":"post","link":"http:\/\/electronicshed.co.uk\/wp\/2017\/02\/09\/wordpress-api\/","title":{"rendered":"WordPress API"},"content":{"rendered":"<h2>Access your WordPress site&#8217;s data through an easy-to-use HTTP REST API.<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-20 size-thumbnail\" src=\"http:\/\/electronicshed.co.uk\/wp\/wp-content\/uploads\/2017\/02\/wordpress-logo-notext-rgb-150x150.png\" width=\"150\" height=\"150\" srcset=\"http:\/\/electronicshed.co.uk\/wp\/wp-content\/uploads\/2017\/02\/wordpress-logo-notext-rgb-150x150.png 150w, http:\/\/electronicshed.co.uk\/wp\/wp-content\/uploads\/2017\/02\/wordpress-logo-notext-rgb-250x250.png 250w, http:\/\/electronicshed.co.uk\/wp\/wp-content\/uploads\/2017\/02\/wordpress-logo-notext-rgb-100x100.png 100w, http:\/\/electronicshed.co.uk\/wp\/wp-content\/uploads\/2017\/02\/wordpress-logo-notext-rgb-350x350.png 350w, http:\/\/electronicshed.co.uk\/wp\/wp-content\/uploads\/2017\/02\/wordpress-logo-notext-rgb-300x300.png 300w, http:\/\/electronicshed.co.uk\/wp\/wp-content\/uploads\/2017\/02\/wordpress-logo-notext-rgb.png 500w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><br \/>\nThe dilemma of whether to use WordPress for a site or to start from a simple mobile first design seems to be a discussion point amongst developers. WordPress seems overkill for simple sites and needs a lot of modification to change the theme to what is required. That is from the opinion of a developer who is happier with the programming and wishes to optimise for fast download response and to meet the growing use of mobile devices.<\/p>\n<p>It seems that the WordPress API offers a solution of using the ready made and user friendly database interface to serve content to a simpler site.<\/p>\n<figure id=\"attachment_21\" aria-describedby=\"caption-attachment-21\" style=\"width: 220px\" class=\"wp-caption alignright\"><a href=\"https:\/\/developer.wordpress.org\/rest-api\/\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-21 \" src=\"http:\/\/electronicshed.co.uk\/wp\/wp-content\/uploads\/2017\/02\/banner-300x97.jpg\" alt=\"WP REST API website\" width=\"220\" height=\"71\" srcset=\"http:\/\/electronicshed.co.uk\/wp\/wp-content\/uploads\/2017\/02\/banner-300x97.jpg 300w, http:\/\/electronicshed.co.uk\/wp\/wp-content\/uploads\/2017\/02\/banner-350x113.jpg 350w, http:\/\/electronicshed.co.uk\/wp\/wp-content\/uploads\/2017\/02\/banner-768x249.jpg 768w, http:\/\/electronicshed.co.uk\/wp\/wp-content\/uploads\/2017\/02\/banner-1024x332.jpg 1024w, http:\/\/electronicshed.co.uk\/wp\/wp-content\/uploads\/2017\/02\/banner.jpg 1544w\" sizes=\"auto, (max-width: 220px) 100vw, 220px\" \/><\/a><figcaption id=\"caption-attachment-21\" class=\"wp-caption-text\">WP REST API<\/figcaption><\/figure>\n<p><a href=\"http:\/\/About the WordPress REST API\">About the WordPress REST API<\/a><\/p>\n<div style=\"clear: both;\"><\/div>\n<p>The API was used to provide an interface to the data most recent posts to provide a short index on the mobile friendly website.<\/p>\n<p>The api was easily installed using the plugin manager within wordpress.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Access your WordPress site&#8217;s data through an easy-to-use HTTP REST API. The dilemma of whether to use WordPress for a site or to start from a simple mobile first design &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/electronicshed.co.uk\/wp\/2017\/02\/09\/wordpress-api\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;WordPress API&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2,3],"class_list":["post-6","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-json","tag-wordpress"],"_links":{"self":[{"href":"http:\/\/electronicshed.co.uk\/wp\/wp-json\/wp\/v2\/posts\/6","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/electronicshed.co.uk\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/electronicshed.co.uk\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/electronicshed.co.uk\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/electronicshed.co.uk\/wp\/wp-json\/wp\/v2\/comments?post=6"}],"version-history":[{"count":11,"href":"http:\/\/electronicshed.co.uk\/wp\/wp-json\/wp\/v2\/posts\/6\/revisions"}],"predecessor-version":[{"id":78,"href":"http:\/\/electronicshed.co.uk\/wp\/wp-json\/wp\/v2\/posts\/6\/revisions\/78"}],"wp:attachment":[{"href":"http:\/\/electronicshed.co.uk\/wp\/wp-json\/wp\/v2\/media?parent=6"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/electronicshed.co.uk\/wp\/wp-json\/wp\/v2\/categories?post=6"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/electronicshed.co.uk\/wp\/wp-json\/wp\/v2\/tags?post=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}