Upgrade to Pro — share decks privately, control downloads, hide ads and more …

WP REST API

WP REST API

In Hans-Helge’s Session geht es um die WordPress REST API, mit deren Einführung WordPress zu einer erweiterten Framework wird. Der Kreativität sind damit kaum Grenzen gesetzt. Die Entwicklung sollte kein WordPress-Nutzer verpassen.

Hans-Helge Buerger

June 07, 2015
Tweet

More Decks by Hans-Helge Buerger

Other Decks in Programming

Transcript

  1. Hans-Helge Bürger » @obstschale » Master Student an der TU

    Berlin » Freiberufler für WordPress Entwicklung WordCamp Köln 2015 – Hans-Helge Bürger 2
  2. “This plugin provides an easy to use REST API, available

    via HTTP.” WordCamp Köln 2015 – Hans-Helge Bürger 4
  3. WP, REST und andere Akronyme 1.WP = WordPress 2.API =

    Application Program Interface 3.REST = Representational State Transfer 4.JSON = JavaScript Object Notation WordCamp Köln 2015 – Hans-Helge Bürger 5
  4. REST » Create -> POST » Read -> GET »

    Update -> PUT » Delete -> DELETE WordCamp Köln 2015 – Hans-Helge Bürger 7
  5. GET https://poststatus.com/wp-json/posts/12432 { "ID": 12432, "title": "WordPress 4.2, “Powell”, released",

    "status": "publish", "type": "post", "author": { "ID": 1, "username": "krogsgard", "name": "Brian Krogsgard", "first_name": "Brian", "last_name": "Krogsgard", "nickname": "krogsgard", "slug": "krogsgard", "URL": "", "avatar": "https://0.gravatar.com/avatar/6b89515a9781282ae3a66d4b6173523c?s=96", "description": "I'm a WordPress developer from Birmingham, Alabama. I'm the creator and editor of Post Status.", "registered": "2012-12-09T20:04:39+00:00", "meta": { "links": { "self": "https://poststatus.com/wp-json/users/1", "archives": "https://poststatus.com/wp-json/users/1/posts" } } }, "content": "Blog Post", } WordCamp Köln 2015 – Hans-Helge Bürger 8