At its base, the config service is used to form the proper ajax url to be used with the Ajax Service to make a direct network call. Ember FW GC's config service extends Ember FW's config service, which can be found here. The basic usage of calling a network request within the app you are currently logged into is described there (with formUrl). Ember FW GC only adds a couple of functions to allow more complicated forming of url (such as forming a url for another app). See the couple added functions below.

For a detailed example of how to implement the config (and ajax) service at the basic level, see our Conceptual Introduction - Advanced Topics.

Show:
formAppUrl
(
  • app
)
String

Same arguments and usage as formUrl, except it sends to another app besides the current one.

Parameters:

  • app String

    App to send request to. Should be loaded using AppMetaService.findMeta

Returns:

String:

AJAX url for an inter-app ajax request

formGCUrl () String

Forms a request to group control, expected to be an app dependency of this app. Automatically handles being in group control. Same arguments and usage as formUrl.

Returns:

String:

AJAX url for an Group Control Ajax request

promiseAppUrl
(
  • app
)
Promise

Same arguments and usage as formUrl, except instead of returning the URL, returns a promise that resolves to the URL.

Parameters:

  • app String

    App to send request to

Returns:

Promise:

Promise that returns an AJAX url for an inter-app ajax request