You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -442,6 +442,25 @@ The `SpringDataRestAdapter` is designed to be configurable and you are able to c
442
442
* `linksSelfLinkName` (default: `self`): the name of the self link in the links object.
443
443
* `embeddedKey` (default: `_embedded`): the property name where the embedded items are stored.
444
444
* `embeddedNewKey` (default: `_embeddedItems`): the property name where the array of embedded items are stored.
445
+
* `embeddedNamedResources` (default: `false`): true if the embedded resources names should be left as is, false if they should be removed
446
+
* Example if set to true:
447
+
```json
448
+
{
449
+
...
450
+
"_embeddedItems": {
451
+
"categories": [...]
452
+
}
453
+
...
454
+
}
455
+
```
456
+
* Example if set to false:
457
+
```json
458
+
{
459
+
...
460
+
"_embeddedItems": [...]
461
+
...
462
+
}
463
+
```
445
464
* `hrefKey` (default: `href`): the property name where the url is stored under each specific link.
446
465
* `resourcesKey` (default: `_resources`): the property name where the resource method is stored.
447
466
* `resourcesFunction` (default: `undefined`): the function to use to call the backend. Read more how to do this [here](#exchange-the-underlying-angular-resource-function)
@@ -469,6 +488,7 @@ The config method of the `SpringDataRestAdapterProvider` takes a configuration o
0 commit comments