How to navigate to a Post on a RESTful site on MVC 4

I am trying to get a hold of using RESTful on MVC 4 to give me an API I can use on WP/Android/Iphone, so for starters (This method will be remade later, this is just for testing purposes) I have a...

WP Rest API Get Featured Image

I am building a relatively simply blog page that uses the WP Rest Api and AngularJs to show the data on the front-end. On my home page I want to return the title, followed by the featured image,...

WordPress REST API Plugin Development - Add Custom Endpoint

I'm almost certainly doing something stupid - or rather not doing something obvious that I should have done. I'm writing a plugin to expose a function via http POST so I can send JSON to my...

Ionic Framework using JSONP and the WordPress JSON-API

I am currently playing with wpIonic (https://github.com/scottopolis/wpIonic) and the sample uses WP-JSON-API V2 (https://wordpress.org/plugins/rest-api/), but I have heavly bespoked another WP API...

wordpress json api and ajax login

I am working on a wordpress theme based on AngularJS framework, I already setup WP REST API and it is accessible from the /wp-json, My login form is ajax driven (AngularJS controller) now I am...

Angular JS $http.get returns empty data from WP REST API, but only on actual iOS device

I'm making an Ionic app that accesses a Wordpress site using the WP REST API V2 plugin. Given this code in my...

creating a service in angularJS, using restangular promises

Ok, this is driving me mad, basically what I am trying to do is create a service to get and evaluate user capabilities, I am using WP REST API. I use restangular to get my JSON data. At this stage...

How to persist data in a service on refresh in AngularJS?

I'm creating a new multi-use website for a new brand my company is launching in a few weeks. We use a WordPress backend and via the WP REST API, are now able to uncouple the system and use...

Add specific class depending to JSON string with Angular

I'm trying to build my first wordpress theme using AngularJS. To do this, i'm using the WP API REST. To create my pages, I have some flexible content (build with ACF) in order to display...

How and where to instantiate a custom class that extends the WP_REST_Controller

I have a plugin that I created and I want to use the WP rest api controller pattern in order to extend the api. <?php /** * Plugin Name: myplugin * Plugin URI: h... * Description: A simple plugin...

is_user_logged_in() return false even when logged in to WordPress?

I have a plugin that I created and I want to use the WP rest api controller pattern and extend the api. <?php /** * Plugin Name: myplugin * Plugin URI: h... * Description: A simple plugin ... *...

Wordpress Rest API: How to query Category Name by id in Angularjs

I am working on my first app, based on Ionic and Angularjs connected to Wordpress REST Api. I need to display the category name, but the WP-API V2 post list (example.com/wp-json/wp/v2/posts) has...

WP REST API - Strange formatting in response

So I'm working with the wp rest api and the wp rest controller plugin. I have a music theme that's doing some interesting things. When i make the API call one of the properties i get is...

WP REST API Extending existing controller

My ideia is to get the list of categories but with only the fields that I need. The request parameters (exclude, include, order, per_page, etc.) should work as when using REST API. So I am trying...

wordpress rest-api issue with empty request body passed php 7

I am using wordpress 4.7 on php 7, also getting problems with the empty request body. My Controller : add_action('rest_api_init', function() { register_rest_route('v0',...

No mapping found for HTTP request with URI in DispatcherServlet with name 'dispatcher'.

I am trying to migrate our application to use Spring 4 features. So I am slowly trying to remove XML config (web.xml, applicationContext.xml, dispatcher-servlet.xml) and replace with Java...

WordPress REST API without plugin using wp_query

I have developing an ionic application using WordPress as a backend. For this, I use wp_query to fetch the blog posts from WordPress and show it in ionic application. Here the problem is, the...

Creating custom endpoints Wordpress

I am having trouble on creating custom endpoints to extend my Wordpress application. After setting up the WordPress module, I can access the json data through the link given :...

How to define Wordpress global variable for use in a REST Controller?

I'm extending the WP REST API by writing a Controller class. I'm trying to read the config for this class from a file, e.g: { "base-namespace": "myapi", "version": "v1", "resource":...

WP Rest API not allowing to post anonymous comments through a Laravel request

I'm using WP REST API to get posts in a Laravel project. Its not allowing to post anonymous comments against a specific post. I have updated my functions.php as well Here is the...

Custom endpoint and X-WP-TotalPages (headers) headers are null

I created custom endpoint for products, now im geting my products from Wp Rest Api (/wp-json/wl/v1/products) and everything goes nice, my problem is that my custom endpoint or route(whatever)...