{"id":1554,"date":"2020-06-10T05:06:15","date_gmt":"2020-06-10T05:06:15","guid":{"rendered":"https:\/\/2020.denver.wordcamp.org\/?post_type=wcb_session&#038;p=1554"},"modified":"2020-06-27T19:15:25","modified_gmt":"2020-06-27T19:15:25","slug":"workshop-wordpress-rest-api","status":"publish","type":"wcb_session","link":"https:\/\/denver.wordcamp.org\/2020\/session\/workshop-wordpress-rest-api\/","title":{"rendered":"[Workshop] WordPress REST API: AJAX Forms &amp; SPA Pages"},"content":{"rendered":"\n<p>1:30pm MDT  \u2022  <a href=\"https:\/\/2020.denver.wordcamp.org\/alpha-workshops\/\">Watch \u2192<\/a><\/p>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe loading=\"lazy\" class=\"youtube-player\" width=\"580\" height=\"327\" src=\"https:\/\/www.youtube.com\/embed?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en-US&#038;autohide=2&#038;wmode=transparent&#038;listType=playlist&#038;list=PLZNK8YuN1xqs61AdGfSbK-K3_d1Z09nLX\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\"><\/iframe><\/span>\n<\/div><\/figure>\n\n\n\n<p>What is the WP REST API and how can I use it to make forms and pages that don\u2019t need to do be reloaded?<\/p>\n\n\n\n<p>In this talk, we will look at what the WP REST API is, how to modify existing \u2018endpoint\u2019s as well as creating our own custom endpoints.<\/p>\n\n\n\n<p>We will also make a small WP REST API site that carries out GET and POST requests for forms and pages as well as use the WP-Nonce security mechanism.<\/p>\n\n\n\n<p>All code files will be available so that you can start to use the WP REST API right away!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1:30pm MDT \u2022 Watch \u2192 What is the WP REST API and how can I use it to make forms and pages that don\u2019t need to do be reloaded? In this talk, we will look at what the WP REST API is, how to modify existing \u2018endpoint\u2019s as well as creating our own custom endpoints. [&hellip;]<\/p>\n","protected":false},"author":15819979,"featured_media":0,"template":"","meta":{"jetpack_post_was_ever_published":false,"_wcpt_session_time":1593264600,"_wcpt_session_duration":7200,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[1413],"footnotes":""},"session_track":[27],"session_category":[],"class_list":["post-1554","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-power-user-developer"],"jetpack_sharing_enabled":true,"session_date_time":{"date":"June 27, 2020","time":"1:30 pm"},"session_speakers":[{"id":"1413","slug":"craig-west","name":"Craig West","link":"https:\/\/denver.wordcamp.org\/2020\/speaker\/craig-west\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/denver.wordcamp.org\/2020\/wp-json\/wp\/v2\/sessions\/1554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/denver.wordcamp.org\/2020\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/denver.wordcamp.org\/2020\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":4,"href":"https:\/\/denver.wordcamp.org\/2020\/wp-json\/wp\/v2\/sessions\/1554\/revisions"}],"predecessor-version":[{"id":3901,"href":"https:\/\/denver.wordcamp.org\/2020\/wp-json\/wp\/v2\/sessions\/1554\/revisions\/3901"}],"speakers":[{"embeddable":true,"href":"https:\/\/denver.wordcamp.org\/2020\/wp-json\/wp\/v2\/speakers\/1413"}],"author":[{"embeddable":true,"href":"https:\/\/denver.wordcamp.org\/2020\/wp-json\/wporg\/v1\/users\/craigwestwpbtn"}],"wp:attachment":[{"href":"https:\/\/denver.wordcamp.org\/2020\/wp-json\/wp\/v2\/media?parent=1554"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/denver.wordcamp.org\/2020\/wp-json\/wp\/v2\/session_track?post=1554"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/denver.wordcamp.org\/2020\/wp-json\/wp\/v2\/session_category?post=1554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}