Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Plugin that adds a RESTful API to WordPress.
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
src/Queensbridge
tests
.gitignore
.travis.yml
README.md
build.xml
composer.json
composer.lock
phpunit.xml.dist
wordpress-api.php

README.md

WordPress RESTful API

The point of this project is to add a RESTful API to a WordPress blog, which then be used to create third-party applications. The goal is to map all of WordPress' functionality to API endpoints.

Authentication

Right now authentication is done using Basic HTTP authentication.

Namespace

The default namespace for the api is /api but that can be changed to whatever.

API Structure

This is an example on how the API looks like for a wordpress post type. This also works for custom post types.

GET       /posts        get all posts
POST      /posts        create a new post
GET       /posts/:id    get a specific post
PUT       /posts/:id    update a specific post
DELETE    /posts/:id    delete a specific post

User information

GET       /me           returns information about the currently logged in user
Something went wrong with that request. Please try again.