It’s probably worth noting that this only counts as one active installation in the WordPress.org repository stats. 🙁 It’s definitely worth noting how we use it! 🙂
Our primary use for the WP REST API is to share content throughout the University via our WSUWP Content Syndicate plugin. With the simple
wsuwp_json shortcode, anyone is able to embed a list of headlines from articles published on news.wsu.edu.
And just by changing the host, I can switch over and embed a couple of recent headlines from web.wsu.edu.
Having the ability to share information across the University is very useful to us. It helps various groups and sites throughout the ecosystem feel more connected as visitors and as site owners.
Of course, we could have used a pre-existing syndication format like RSS as a solution, but a REST API is so much more flexible. It didn’t take much work to extend the initial plugin using things like
register_rest_field() to support and display results from the central people directory we have in progress.
That’s me, pulled in from our people API.
This kind of data flexibility is a big part of our vision for the future of the web at WSU. Soon we’ll be able to highlight information for research faculty that may help to connect them with other groups working on similar topics. We’ll have ways to create articles on the edge of the network and have them bubble up through the various layers of the university—department, college, central news. And we’ll be able to start tying data to people in a smarter way so that we can help to make sure voices throughout the university are heard.
And that’s just our first angle! One day I’ll expand on how we see the REST API changing our front end workflow in creative ways.