8000 GitHub - pmahent/WP-API: A JSON-based REST API for WordPress
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ WP-API Public
forked from WP-API/WP-API

A JSON-based REST API for WordPress

Notifications You must be signed in to change notification settings

pmahent/WP-API

 
 

Repository files navigation

REST API

This is a project to create a JSON-based REST API for WordPress. This project is run by Ryan McCue and is part of the WordPress 2013 GSoC projects.

2/23/14 Now running off of WP-API 0.8

Installation

As a Plugin

Drop this directory in and activate it. You need to be using pretty permalinks to use the plugin, as it uses custom rewrite rules to power the API.

As Part of Core

Note: These instructions will likely be broken while in development. Please use the plugin method instead.

Drop wp-json.php into your WordPress directory, and drop class-wp-json-server.php into your wp-includes/ directory. You'll need working PATH_INFO on your server, but you don't need pretty permalinks enabled.

Issue Tracking

All tickets for the project are being tracked on the GSoC Trac. Make sure you use the JSON REST API component.

RoyBoy789 Additions

Routes

I have added in a /widgets route with will handle /widgets/id where id is the sidebar id
I have added in a /users route with POST (to add new) and /users/id for a single profile page

Endpoints

I have added in a POST for /post/comments to add new comments

All code used in my AngularJS Wordpress Theme

About

A JSON-based REST API for WordPress

Resources

Stars

Watchers

Forks

Packages

No packages published
0