Search code examples
ember.jsember-datawordpress-rest-api

EmberJS: retrieving a property from a different endpoint


I'm building an Ember app that uses a Wordpress (WordPress REST API v2). Posts are returned on endpoint:

/posts and /posts/

However, I also want to retrieve the post category which is on endpoint:

/posts/categories

What's the best way to hit this endpoint and include the property on my model?


Solution

  • Take a look at ember-api-actions addon. It seems to me, that is exactly what you looking for.