This service packages important configuration properties into a Service that can be injected anywhere that is needed. The config service is primarily used in tandem with the ajax service to make direct network requests to the serverside without going through the Ember model. The config service is responsible for creating the Ajax url which will be used by the Ajax Service.
This config service is extended by our ember-fw-gc service called config, which adds a few more functions, so if you are using ember-fw-gc, check out its documentation for the ember-fw-gc config service, here.
For a basic example of how to implement the config (and ajax) service at the basic level, see our Conceptual Introduction - Advanced Topics.
Forms a url from the arguments specified.
Expects arguments as strings, with the exception of the last argument, which can be an object of properties to convert to query parameters.
Example usage:
// assuming apiRoot is '/api/'
let id = 10
let url = config.formUrl('users', id, {include: 'posts'});
// url is '/api/users/10/?include=posts'