LexasCMS supports both JSON:API and Ember Data out of the box, making it the perfect headless CMS for managing content in your Ember.js applications.
LexasCMS offers a JSON:API compliant content delivery API which can be plugged directly into Ember Data.
export default class BlogIndexRoute extends Route {
@service lexascms;
@service store;
model() {
// Set request context
this.lexascms.setRequestContext({
audienceAttributes: {
role: 'developer',
location: 'GB'
}
});
// Fetch articles
return this.store.findAll('article');
}
}
Thanks to LexasCMS' built-in support for personalised content, you can easily tailor the content that each user receives without the need for complicated logic within your application.
export default class BlogIndexRoute extends Route {
@service store;
model() {
return this.store.findAll('article');
}
}
Our content delivery API automatically determines which content should be returned and when. This allows you to stop worrying about fetching content and focus more on building your application.
export default class BlogIndexRoute extends Route {
@service store;
model() {
return this.store.query('article', {
localeCode: 'de-DE'
});
}
}
Easily retrieve localised content for your Ember.js application using Ember Data's built-in data fetching methods.
This example blog website demonstrates how simple it is to integrate an Ember.js application with LexasCMS.
© 2022 Status200 Ltd.