|
10 | 10 | - [Usage of `_resources` method](#usage-of-_resources-method) |
11 | 11 | - [The `_resources` method parameters and return type](#the-_resources-method-parameters-and-return-type) |
12 | 12 | - [`_resources` usage example](#_resources-usage-example) |
13 | | - - [Exchange the underlying Angular `$resource` function](#exchange-the-underlying-angular-$resource-function) |
| 13 | + - [Exchange the underlying Angular `$resource` function](#exchange-the-underlying-angular-resource-function) |
14 | 14 | - [Usage of `_embeddedItems` property](#usage-of-_embeddeditems-property) |
15 | 15 | - [`_embeddedItems` usage example](#_embeddeditems-usage-example) |
16 | 16 | - [Configuration of the `SpringDataRestAdapter`](#configuration-of-the-springdatarestadapter) |
@@ -82,7 +82,7 @@ This *Angular* module provides two ways of processing a response from the *Sprin |
82 | 82 |
|
83 | 83 | The `spring-data-rest` *Angular* module provides a provider for the `SpringDataRestAdapter` object. This object is the core of the module and it processes a given response and adds the following additional properties/methods to it: |
84 | 84 |
|
85 | | -1. `_resources`: this method wraps the *Angular* `$resource` function by default (this is [exchangeable](#exchange-the-underlying-angular-$resource-function)) and adds an easy way to retrieve the resources defined in the `_links` property. It is also used to retrieve all available resources of the given object. Read more about this property [here](#usage-of-_resources-property). |
| 85 | +1. `_resources`: this method wraps the *Angular* `$resource` function by default (this is [exchangeable](#exchange-the-underlying-angular-resource-function)) and adds an easy way to retrieve the resources defined in the `_links` property. It is also used to retrieve all available resources of the given object. Read more about this property [here](#usage-of-_resources-property). |
86 | 86 | 2. `_embeddedItems`: this property replaces the `_embedded` property and sets the named array (`categories` in the upper example response) with the embedded items as its value. Read more about this property [here](#usage-of-_embeddedItems-property). |
87 | 87 |
|
88 | 88 | Spring Data REST also generates an index response when you make a `GET` response to the configured base url of the dispatcher servlet. This response looks like the following example: |
@@ -170,7 +170,7 @@ var resourceObject = { |
170 | 170 | processedResponse._resources(resourceObject, paramDefaults, actions, options); |
171 | 171 | ``` |
172 | 172 |
|
173 | | -This will call *Angular* `$resource` method by default (this is [exchangeable](#exchange-the-underlying-angular-$resource-function)) with the `href` of the `self` resource and will add the parameters `size` and `sort` as query string to the URL. If the resource object parameters and the `paramDefaults` parameters are set, then these two objects are merged such that the resource object parameters appear first in the new object and the `paramDefaults` parameters last. |
| 173 | +This will call *Angular* `$resource` method by default (this is [exchangeable](#exchange-the-underlying-angular-resource-function)) with the `href` of the `self` resource and will add the parameters `size` and `sort` as query string to the URL. If the resource object parameters and the `paramDefaults` parameters are set, then these two objects are merged such that the resource object parameters appear first in the new object and the `paramDefaults` parameters last. |
174 | 174 |
|
175 | 175 | * `paramDefaults`: the default values for url parameters. Read more [here](https://docs.angularjs.org/api/ngResource/service/$resource). |
176 | 176 | * `actions`: custom action that should extend the default set of the `$resource` actions. Read more [here](https://docs.angularjs.org/api/ngResource/service/$resource). |
@@ -288,7 +288,7 @@ The `SpringDataRestAdapter` is designed to be configurable and you are able to c |
288 | 288 | * `embedded.value` (default: `_embeddedItems`): the property name where the array of embedded items are stored. |
289 | 289 | * `hrefKey` (default: `href`): the property name where the url is stored under each specific link. |
290 | 290 | * `resourcesKey` (default: `_resources`): the property name where the resource method is stored. |
291 | | -* `resourcesFunction` (default: `undefined`): the function to use to call the backend. Read more how to do this [here](#exchange-the-underlying-angular-$resource-function) |
| 291 | +* `resourcesFunction` (default: `undefined`): the function to use to call the backend. Read more how to do this [here](#exchange-the-underlying-angular-resource-function) |
292 | 292 |
|
293 | 293 | You are able to configure the `SpringDataRestAdapter` provider in a *Angular* configuration block in the following way: |
294 | 294 |
|
|
0 commit comments