WordPress Rest API

Who is the WordPress REST API really serving?

There is a saying that goes like this, “Beauty is in the eye of the beholder”. It’s true. How many times have you bought something that you loved and shown it to a partner/friend/colleague etc and not gotten the response or reaction that you had expected?

If you’re anything like me, it happens often.

Well the same is true in software. Don’t worry, we’re not going to go in to the ins and outs of beautiful user interfaces. What I am actually talking about here is slightly different and that is…

Software is really only beneficial to someone who has a problem that the software can solve.

Would you agree?

So by releasing software, your goal as a creator is to get it in to the hands of people who have a problem or challenge that your software obliterates.

What problem is the WordPress REST API attempting to solve and for who?

Let’s examine the WordPress REST API. There has been a lot of chatter recently on blogs and Twitter about the pros and cons of building out a full API spec supporting all of the WordPress features verse iteratively releasing the API as it is being developed.

Until recently, I was firmly in the camp of iteratively releasing the API, but the more I think about it, the more unconvinced I become. Let me explain.

Like a proverbial half built house, while it’s possible that someone could move in and live there, it’d be rather uncomfortable. The WP REST API has come a very long way and is an extremely important piece of WordPress functionality. In fact it’s as big as the addition of custom post types in version 3.

Because it’s that big, it needs to be done right. Doing it right obviously has little to do with doing iterative releases or one big single release. However, doing it right does mean more than just releasing an API that works in certain contexts.

Doing it right means releasing something in a package that would satisfy the needs of the intended audience. Like we mentioned above, solving a real life problem.

Many people in the WordPress space (and potentially you too) feel that the intended audience of the WordPress REST API is developers. And if that were the case then I would agree, release the API in it’s current form and iterate. But as I will try convince you below, while developers are an important piece of this puzzle, there is much more to the WordPress REST API than an API for developers to play with.

So, who is the WordPress REST API really serving?

The big winner at the end of the day is not initially going to be the end user i.e. bloggers.

Yes, they’ll benefit eventually once the experience improves because we’re building a platform on top of bleeding edge technologies. But that will happen over time. Can you think of a single piece of WordPress functionality that our users are missing out on because we don’t have a REST API?

There is a reason why there is only 20 something plugins using the REST API in the repository currently. That’s not the audience who will benefit the most.

In my mind, the WordPress REST API is going to initially serve 2 clear stakeholders…

The first is the much smaller stakeholder. Developers. Why? Because as developers we can stay relevant in the web development space by adopting new modern development frameworks. Because we can now use WordPress for more applications than just a blog or CMS. Because we can now offer much better mobile application experiences to our audiences. Because now more businesses will consider WordPress as a platform as it can integrate with existing systems easily.

And right there is the second stakeholder and the largest by far; business!

The WordPress REST API is going to mostly serve the needs of business. Businesses will now start taking WordPress as a platform a lot more seriously. Where before there was a narrow path for business to integrate in to WordPress, we’ve now got a 5 lane highway.

Why the WordPress REST API is going to be used mostly by businesses

The key area where I see the REST API being used almost exclusively is not really for next generation publishing platforms, but for integration with existing platforms.

Good businesses care about connecting with their customers to keep them happy and coming back for more. They also care about reaching potential new customers to grow margins. What better way to do this than by integrating with 25% of the web? Savvy businesses have already seen this opportunity and are moving swiftly.

WordPress will become way more than just a blogging or internal intranet platform to businesses now. It suddenly can be integrated in to existing CRM systems for instance, with little hassle. They can now import their existing content in to WordPress much more easily. What about their mobile experiences? Yep, WordPress can be the backend to those.

Existing social and publishing businesses can now easily start pushing their platforms on top of WordPress. Think of a completely unrelated example of Twitter data showing in a Slack feed. Well now you can easily have those kind of integrations pushing data in to WordPress.

WordPress also becomes a viable option for quickly putting out a MVP or proof of concept application with a fully fledged REST API. Got a development community, let them play around with it!

We’re going to see companies build products on top of WordPress like never before. There’s so much more opportunity opened up to business by simply providing them with an easy gateway in to the WordPress platform via a REST API.

The challenge the WordPress REST API team faces

So here is the challenge that we currently face. I’m putting it to you that business is who the WordPress API is being built for but business wants a polished product. They don’t want something half finished with the promise of more. Business really tends to look at things in black and white. To bring back our running metaphor, business doesn’t want an office without a roof.

And because I believe that at the end of the day, business is really who the WordPress REST API should be serving, I believe that the right path here is to give them something that is polished. Something they can pick up and start using immediately. We don’t have that just yet.

We will soon enough, the team working on it is doing an excellent job of making solid progress each week. Once the API supports every feature of current WordPress, then for me personally, I will then feel that it is ready for business.

Of course for the more forward thinking businesses, they can use the plugin in the interim, knowing that when it is merged in to core, they’ll be ahead of the game somewhat.

If at the end of the day, we serve the intended audience of the WordPress REST API and we agreed that business should be that benefactor then we’re on the right path.

If not, we’re making a mistake and we’ll learn from it. Either way, we’re walking a path in to somewhat unchartered territory and we’re going to make mistakes and bump our heads. That’s how we learn. That’s how we move forward.

So where to from here?

Clearly, there are a lot of different opinions being thrown out and we need to be aware of those and rather than tear them down let’s be really be supportive of each other. Don’t dismiss something that you don’t agree with, try to look at it from another perspective.

Most importably, we all need to be respectful to the team doing the hard work on the ground. Not everyone is going to agree on the best way forward but let’s continue to discuss the issues at hand and “iteratively” 😉 work on it.

 

Enjoyed this content? Get an article like this delivered to your inbox every Tuesday...

18 thoughts on “Who is the WordPress REST API really serving?”

    1. Matt says:

      Glad you agree Morten. We’re clearly in the minority 🙂 But it’s good for the debate!

  1. Jham says:

    I feel your concerns.. however.. as you emphasize on the final lines of your article that “we need to see things in a different perspective”.. have you not thought of the hardships that developers do to improve what you CURRRENTLY use to build your blog? They make bloggers life easy through the improvement they make and most of them does it for FREE.. a way of giving back to WordPress community. Everybody in the web world needs the thing we call “RESPECT” and nobody is exempted from it for my own POV. Believe me your point is garbage, dig deep before you react.

    1. Matt says:

      Hey Jham! Thanks for stopping by 🙂

      I’m curious to find out why you think I was being disrespectful? Also, would love to hear your thoughts on why the point in garbage?

      Have an awesome day!

      PS. Check out my about page and you’ll see, I write plugins and contribute to the core too 🙂

  2. Amanda says:

    Not that much of a minority, again I think it about balance and actually needs to have relevance to both sides. Thanks for the article it really needs debating and I will be sharing elsewhere.
    Cheers Matt and Morten

    1. Matt says:

      Thanks Amanda. Too true, as with most things there are multiple different sides to be explored here.

  3. Mihai says:

    In my humble opinion WordPress needs extensibility, beside ease of use for beginners… that is not only to use it’s components like in Lego games. Extensibility by using plugin programming, JS and REST will help WordPress to surpass the 20-25% present limit from the biggest websites…

    Who cares if REST will not please the big mass of users… it is not intended to… but to link websites, easily implement SaaS, creating MVP using JS like Angular. BTW can anyone you direct me to resources to learn integrate WP with Angular?

    1. Matt says:

      Thanks for your feedback Mihai.

      I haven’t done anything with Angular and WP, but if you check my Youtube channel, I did a series on Backbone.js and the REST API.

  4. Ben says:

    Interesting post, what does everyone think of Contentful as an alternative?

    1. Matt says:

      Thanks Ben. Can’t say that I have ever heard of Contentful, so won’t be able to comment on that 🙂

  5. Dylan says:

    What is it about the business perspective that makes it so black and white? If a developer can conclude “the product does not yet meet my needs, but the next version may”, what prevents a business from reaching that conclusion?

    1. Matt says:

      Great point Dylan.

      For small business, nothing.

      For big business, usually due diligence. From my personal experience, and yours may be different, enterprise business wants a solution that is tried and tested (i.e. in core). They’re less forward thinking than small and sometimes even medium sized businesses.

      Thoughts?

      1. Dylan says:

        I don’t have experience with large business projects to draw from, but I’d love to hear some of those perspectives. Especially if anyone has examples of decisions for and against API adoption in a big business project.

  6. Johan says:

    This week I released my first client project that utilizes the Rest API. I have used it for submitting custom posts via AJAX. Using the Rest API means that this is so much easier than this used to be (I’m using cookie based authentication) and this is why I am very happy with the Rest API plugin.

    Given the fact that the current API Plugin already offers huge benefits I don’t see why the API needs to support every feature of current WordPress. For example, I don’t see the advantage of being able to change the tagline of a WordPress install via the API as in my opinion it will be mostly used for managing posts and users.

    1. Matt says:

      Thanks for the feedback Johan. Great to see that you’re already working with the API. I’m also current working on an REST implementation for a WordPress project using the API.

      I see your point, but what about less well defined but important features, such as meta data. That’s a feature that many implementations will rely on and a good solution is still being reached.

      As for the tagline, that would form part of a larger API feature in the options API. The options API is also a core piece of important functionality for building and managing WordPress plugins and sites.

  7. Jeffrey Costa says:

    Matt,

    You’re asking the right questions, now you need to validate your assumptions with real customers. Is there a way to reach out directly to top-tier WordPress customers and ask this question?

    1. Matt says:

      Hey Jeffrey, I suppose the best way to get feedback from these kinds of customers is to watch what’s being released by them. Unfortunately not all of them are open about technical details, but for the few that are we at least have some insight. You’ll also find that agencies like to do case studies on more innovative projects, that would be another avenue to find out more.

  8. Jeffry says:

    Great insights, i’m seeing all the possibilites wordpress can do now, thanks Matt!

Leave a Reply

Your email address will not be published. Required fields are marked *