Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1719 commits
Select commit Hold shift + click to select a range
5c08836
New translations $attributes.md (Japanese)
arnaud4d Jan 14, 2020
d30c685
New translations REST_requests.md (Japanese)
arnaud4d Jan 14, 2020
1e9afa1
New translations $binary.md (Japanese)
arnaud4d Jan 14, 2020
413a9c8
New translations configuration.md (Japanese)
arnaud4d Jan 14, 2020
5a636c8
New translations $querypath.md (Japanese)
arnaud4d Jan 14, 2020
0524206
New translations $orderby.md (Japanese)
arnaud4d Jan 14, 2020
6400d16
New translations $info.md (Japanese)
arnaud4d Jan 14, 2020
ec924a2
New translations $imageformat.md (Japanese)
arnaud4d Jan 14, 2020
b9c2e6c
New translations $filter.md (Japanese)
arnaud4d Jan 14, 2020
0fbfc10
New translations $expand.md (Japanese)
arnaud4d Jan 14, 2020
a2aaa9b
New translations $distinct.md (Japanese)
arnaud4d Jan 14, 2020
490930f
New translations $compute.md (Japanese)
arnaud4d Jan 14, 2020
5eab2db
New translations $catalog.md (Japanese)
arnaud4d Jan 14, 2020
31946d8
New translations picturePopupMenu_overview.md (Spanish)
arnaud4d Jan 14, 2020
af7317a
New translations list_overview.md (Spanish)
arnaud4d Jan 14, 2020
7748a1c
New translations groupBox.md (Spanish)
arnaud4d Jan 14, 2020
4731c9b
New translations dropdownList_Overview.md (Spanish)
arnaud4d Jan 14, 2020
3c8f1a7
New translations comboBox_overview.md (Spanish)
arnaud4d Jan 14, 2020
5b59a1a
New translations progressIndicator.md (Spanish)
arnaud4d Jan 14, 2020
8bb40c6
New translations pluginArea_overview.md (Spanish)
arnaud4d Jan 14, 2020
7974408
New translations ruler.md (Spanish)
arnaud4d Jan 14, 2020
11a582d
New translations authUsers.md (Spanish)
arnaud4d Jan 14, 2020
6af0027
New translations $filter.md (Spanish)
arnaud4d Jan 14, 2020
faaa299
New translations $expand.md (Spanish)
arnaud4d Jan 14, 2020
1321ac2
New translations $distinct.md (Spanish)
arnaud4d Jan 14, 2020
c676db0
New translations $compute.md (Spanish)
arnaud4d Jan 14, 2020
d9aa291
New translations $catalog.md (Spanish)
arnaud4d Jan 14, 2020
1023313
New translations $binary.md (Spanish)
arnaud4d Jan 14, 2020
1ee599e
New translations $atomic_$atonce.md (Spanish)
arnaud4d Jan 14, 2020
6958253
New translations $asArray.md (Spanish)
arnaud4d Jan 14, 2020
ced64b6
New translations manData.md (Spanish)
arnaud4d Jan 14, 2020
21b8c8a
New translations genInfo.md (Spanish)
arnaud4d Jan 14, 2020
9c07d8f
New translations handling_users_groups.md (Spanish)
arnaud4d Jan 14, 2020
9b24166
New translations spinner.md (Spanish)
arnaud4d Jan 14, 2020
3f038b2
New translations overview.md (Spanish)
arnaud4d Jan 14, 2020
ec3df65
New translations writeProArea_overview.md (Spanish)
arnaud4d Jan 14, 2020
4728930
New translations webArea_overview.md (Spanish)
arnaud4d Jan 14, 2020
80ed2ea
New translations viewProArea_overview.md (Spanish)
arnaud4d Jan 14, 2020
e9acf77
New translations text.md (Spanish)
arnaud4d Jan 14, 2020
04e389a
New translations tabControl.md (Spanish)
arnaud4d Jan 14, 2020
4fdcb85
New translations subform_overview.md (Spanish)
arnaud4d Jan 14, 2020
df3d9d9
New translations stepper.md (Spanish)
arnaud4d Jan 14, 2020
d1053a1
New translations staticPicture.md (Spanish)
arnaud4d Jan 14, 2020
0af7b4c
New translations splitters.md (Spanish)
arnaud4d Jan 14, 2020
dc7acb6
New translations $info.md (Spanish)
arnaud4d Jan 14, 2020
1ae378a
New translations table.png (Spanish)
arnaud4d Jan 14, 2020
e97ed94
New translations en.json (German)
arnaud4d Jan 14, 2020
2099779
New translations en.json (Spanish)
arnaud4d Jan 14, 2020
8547320
New translations $imageformat.md (Spanish)
arnaud4d Jan 14, 2020
01a2a28
New translations $orderby.md (Spanish)
arnaud4d Jan 14, 2020
5a2a848
New translations table.png (German)
arnaud4d Jan 14, 2020
08f532a
New translations getstarted2.png (German)
arnaud4d Jan 14, 2020
6221943
New translations getstarted1.png (German)
arnaud4d Jan 14, 2020
162a739
New translations Settings.png (German)
arnaud4d Jan 14, 2020
2446dee
New translations $querypath.md (Spanish)
arnaud4d Jan 14, 2020
a50eab0
New translations field.png (German)
arnaud4d Jan 14, 2020
87363a6
New translations filterComparator.png (German)
arnaud4d Jan 14, 2020
12bc08e
New translations REST_requests.md (Spanish)
arnaud4d Jan 14, 2020
fd79074
New translations $entityset.md (Spanish)
arnaud4d Jan 14, 2020
d2d7f20
New translations $directory.md (Spanish)
arnaud4d Jan 14, 2020
7010605
New translations {dataClass}.md (Spanish)
arnaud4d Jan 14, 2020
e004a01
New translations configuration.md (Spanish)
arnaud4d Jan 14, 2020
1c5c85f
New translations $attributes.md (Spanish)
arnaud4d Jan 14, 2020
42abcd8
New translations gettingStarted.md (Spanish)
arnaud4d Jan 14, 2020
852751e
New translations $version.md (Spanish)
arnaud4d Jan 14, 2020
f76f301
New translations $upload.md (Spanish)
arnaud4d Jan 14, 2020
e854685
New translations $top_$limit.md (Spanish)
arnaud4d Jan 14, 2020
8023fa8
New translations $timeout.md (Spanish)
arnaud4d Jan 14, 2020
277afc8
New translations $skip.md (Spanish)
arnaud4d Jan 14, 2020
991b1cb
New translations $savedorderby.md (Spanish)
arnaud4d Jan 14, 2020
909f4bf
New translations $savedfilter.md (Spanish)
arnaud4d Jan 14, 2020
21274b9
New translations $queryplan.md (Spanish)
arnaud4d Jan 14, 2020
4e4c2fa
New translations or.png (German)
arnaud4d Jan 14, 2020
9faed71
New translations $method.md (Spanish)
arnaud4d Jan 14, 2020
885bef3
New translations except.png (German)
arnaud4d Jan 14, 2020
3b5daf0
New translations binary.png (German)
arnaud4d Jan 14, 2020
2d96353
New translations and.png (German)
arnaud4d Jan 14, 2020
0c4cf7b
New translations dropdownList_Overview.md (Portuguese)
arnaud4d Jan 14, 2020
2be9523
New translations splitters.md (Portuguese)
arnaud4d Jan 14, 2020
4884232
New translations comboBox_overview.md (Portuguese)
arnaud4d Jan 14, 2020
4e237c9
New translations spinner.md (Portuguese)
arnaud4d Jan 14, 2020
53ab709
New translations groupBox.md (Portuguese)
arnaud4d Jan 14, 2020
2cf4e84
New translations list_overview.md (Portuguese)
arnaud4d Jan 14, 2020
fd48dc8
New translations picturePopupMenu_overview.md (Portuguese)
arnaud4d Jan 14, 2020
c600258
New translations pluginArea_overview.md (Portuguese)
arnaud4d Jan 14, 2020
9ae79a8
New translations staticPicture.md (Portuguese)
arnaud4d Jan 14, 2020
e5c156d
New translations ruler.md (Portuguese)
arnaud4d Jan 14, 2020
af153c2
New translations progressIndicator.md (Portuguese)
arnaud4d Jan 14, 2020
f30d69b
New translations subform_overview.md (Portuguese)
arnaud4d Jan 14, 2020
bb0c401
New translations stepper.md (Portuguese)
arnaud4d Jan 14, 2020
1e59c95
New translations $savedfilter.md (Portuguese)
arnaud4d Jan 14, 2020
fb869d4
New translations tabControl.md (Portuguese)
arnaud4d Jan 14, 2020
8fa111e
New translations $version.md (Portuguese)
arnaud4d Jan 14, 2020
047df81
New translations $queryplan.md (Portuguese)
arnaud4d Jan 14, 2020
64b60c7
New translations $savedorderby.md (Portuguese)
arnaud4d Jan 14, 2020
b7cab7c
New translations $skip.md (Portuguese)
arnaud4d Jan 14, 2020
5d55175
New translations $timeout.md (Portuguese)
arnaud4d Jan 14, 2020
52774c5
New translations $top_$limit.md (Portuguese)
arnaud4d Jan 14, 2020
3e4aeb1
New translations $upload.md (Portuguese)
arnaud4d Jan 14, 2020
0c1b2fc
New translations gettingStarted.md (Portuguese)
arnaud4d Jan 14, 2020
430fcf5
New translations $orderby.md (Portuguese)
arnaud4d Jan 14, 2020
a930742
New translations $attributes.md (Portuguese)
arnaud4d Jan 14, 2020
59ca42d
New translations REST_requests.md (Portuguese)
arnaud4d Jan 14, 2020
9effa6f
New translations configuration.md (Portuguese)
arnaud4d Jan 14, 2020
548bc0e
New translations {dataClass}.md (Portuguese)
arnaud4d Jan 14, 2020
de43558
New translations $directory.md (Portuguese)
arnaud4d Jan 14, 2020
e88ff7d
New translations $entityset.md (Portuguese)
arnaud4d Jan 14, 2020
12189a4
New translations $querypath.md (Portuguese)
arnaud4d Jan 14, 2020
9f10871
New translations $info.md (Portuguese)
arnaud4d Jan 14, 2020
1418612
New translations text.md (Portuguese)
arnaud4d Jan 14, 2020
a72ec9f
New translations manData.md (Portuguese)
arnaud4d Jan 14, 2020
9f2b86b
New translations viewProArea_overview.md (Portuguese)
arnaud4d Jan 14, 2020
fd226df
New translations webArea_overview.md (Portuguese)
arnaud4d Jan 14, 2020
a52a004
New translations writeProArea_overview.md (Portuguese)
arnaud4d Jan 14, 2020
c540b67
New translations overview.md (Portuguese)
arnaud4d Jan 14, 2020
90af69b
New translations handling_users_groups.md (Portuguese)
arnaud4d Jan 14, 2020
129e00b
New translations authUsers.md (Portuguese)
arnaud4d Jan 14, 2020
34a5015
New translations genInfo.md (Portuguese)
arnaud4d Jan 14, 2020
3faf9e6
New translations $asArray.md (Portuguese)
arnaud4d Jan 14, 2020
2f72ac0
New translations $imageformat.md (Portuguese)
arnaud4d Jan 14, 2020
4c33249
New translations $atomic_$atonce.md (Portuguese)
arnaud4d Jan 14, 2020
650eadc
New translations $binary.md (Portuguese)
arnaud4d Jan 14, 2020
f9cb359
New translations $catalog.md (Portuguese)
arnaud4d Jan 14, 2020
719611d
New translations $compute.md (Portuguese)
arnaud4d Jan 14, 2020
2d6bbff
New translations $distinct.md (Portuguese)
arnaud4d Jan 14, 2020
43c0450
New translations $expand.md (Portuguese)
arnaud4d Jan 14, 2020
878f785
New translations $filter.md (Portuguese)
arnaud4d Jan 14, 2020
cc4da95
New translations binary.png (Portuguese)
arnaud4d Jan 14, 2020
a31ff84
New translations $method.md (Japanese)
arnaud4d Jan 14, 2020
004a3cc
New translations en.json (Portuguese)
arnaud4d Jan 14, 2020
5f5dd8b
New translations en.json (Japanese)
arnaud4d Jan 14, 2020
ec00a60
New translations {dataClass}.md (Japanese)
arnaud4d Jan 14, 2020
666e0ad
New translations $directory.md (Japanese)
arnaud4d Jan 14, 2020
9c58fe8
New translations $entityset.md (Japanese)
arnaud4d Jan 14, 2020
d374f71
New translations and.png (Portuguese)
arnaud4d Jan 14, 2020
c521ee4
New translations except.png (Portuguese)
arnaud4d Jan 14, 2020
24e3048
New translations or.png (Portuguese)
arnaud4d Jan 14, 2020
1f4ce2e
New translations filterComparator.png (Portuguese)
arnaud4d Jan 14, 2020
089432d
New translations Settings.png (Portuguese)
arnaud4d Jan 14, 2020
47c679a
New translations field.png (Portuguese)
arnaud4d Jan 14, 2020
89cf0cf
New translations getstarted1.png (Portuguese)
arnaud4d Jan 14, 2020
75d6ae7
New translations getstarted2.png (Portuguese)
arnaud4d Jan 14, 2020
73cf40b
New translations table.png (Portuguese)
arnaud4d Jan 14, 2020
0f2904a
New translations $method.md (Portuguese)
arnaud4d Jan 14, 2020
498108f
added translate tags to index
arnaud4d Jan 15, 2020
48578cf
Merge pull request #72 from 4d/l10n_develop
arnaud4d Jan 15, 2020
34182cf
Merge pull request #73 from 4d/fix/translate-in-home-page
arnaud4d Jan 15, 2020
0cc4333
New translations dt_string.md (Japanese)
arnaud4d Jan 15, 2020
ef04e59
New translations dt_collection.md (Japanese)
arnaud4d Jan 15, 2020
9dbb946
New translations arrays.md (Japanese)
arnaud4d Jan 15, 2020
470bc80
New translations cf_looping.md (Japanese)
arnaud4d Jan 15, 2020
2164f87
New translations data-types.md (Japanese)
arnaud4d Jan 15, 2020
0833b3b
New translations dt_boolean.md (Japanese)
arnaud4d Jan 15, 2020
073d8b1
New translations dt_date.md (Japanese)
arnaud4d Jan 15, 2020
69cd667
New translations dt_object.md (Japanese)
arnaud4d Jan 15, 2020
6fca945
New translations dt_picture.md (Japanese)
arnaud4d Jan 15, 2020
c838924
New translations dt_pointer.md (Japanese)
arnaud4d Jan 15, 2020
8c9b88f
New translations dt_time.md (Japanese)
arnaud4d Jan 15, 2020
194c9d1
New translations identifiers.md (Japanese)
arnaud4d Jan 15, 2020
b4bb94c
New translations quick-tour.md (Japanese)
arnaud4d Jan 15, 2020
89f1ede
New translations shared.md (Japanese)
arnaud4d Jan 15, 2020
253d393
New translations variables.md (Japanese)
arnaud4d Jan 15, 2020
0077ef4
New translations dt_variant.md (Japanese)
arnaud4d Jan 15, 2020
d256bea
New translations stepper.md (Japanese)
arnaud4d Jan 15, 2020
35bccac
New translations overview.md (Japanese)
arnaud4d Jan 15, 2020
a22dc6d
New translations formObjects_overview.md (Japanese)
arnaud4d Jan 15, 2020
6b9f88f
New translations webArea_overview.md (Japanese)
arnaud4d Jan 15, 2020
a093f8c
New translations text.md (Japanese)
arnaud4d Jan 15, 2020
cc2e544
New translations tabControl.md (Japanese)
arnaud4d Jan 15, 2020
75be866
New translations subform_overview.md (Japanese)
arnaud4d Jan 15, 2020
a4cb8e1
New translations staticPicture.md (Japanese)
arnaud4d Jan 15, 2020
52c76bb
New translations splitters.md (Japanese)
arnaud4d Jan 15, 2020
4d007bb
New translations spinner.md (Japanese)
arnaud4d Jan 15, 2020
957ff6c
New translations ruler.md (Japanese)
arnaud4d Jan 15, 2020
629c546
New translations progressIndicator.md (Japanese)
arnaud4d Jan 15, 2020
b133245
New translations pluginArea_overview.md (Japanese)
arnaud4d Jan 15, 2020
690b866
New translations picturePopupMenu_overview.md (Japanese)
arnaud4d Jan 15, 2020
46d4ef3
New translations list_overview.md (Japanese)
arnaud4d Jan 15, 2020
92b8410
New translations groupBox.md (Japanese)
arnaud4d Jan 15, 2020
861b15b
New translations dropdownList_Overview.md (Japanese)
arnaud4d Jan 15, 2020
05064b9
New translations comboBox_overview.md (Japanese)
arnaud4d Jan 15, 2020
00b2526
New translations radio_overview.md (Japanese)
arnaud4d Jan 15, 2020
94b8eaf
New translations properties_Scale.md (Japanese)
arnaud4d Jan 15, 2020
3d1418e
New translations en.json (Japanese)
arnaud4d Jan 15, 2020
b3c9a0e
New translations properties_WebArea.md (Japanese)
arnaud4d Jan 15, 2020
c1312e8
New translations buttonGrid_overview.md (Japanese)
arnaud4d Jan 15, 2020
ba76963
New translations createStylesheet.md (Japanese)
arnaud4d Jan 15, 2020
4b277dd
New translations objectLibrary.md (Japanese)
arnaud4d Jan 15, 2020
aed1c21
New translations sdi.md (Japanese)
arnaud4d Jan 15, 2020
f67f81c
New translations overview.md (Japanese)
arnaud4d Jan 15, 2020
456a0b0
New translations pictureButton_overview.md (Japanese)
arnaud4d Jan 15, 2020
86d8497
New translations overview.md (Japanese)
arnaud4d Jan 15, 2020
16d1054
New translations overview.md (Japanese)
arnaud4d Jan 15, 2020
e914ae5
New translations input_overview.md (Japanese)
arnaud4d Jan 15, 2020
5ad2543
New translations properties_Headers.md (Japanese)
arnaud4d Jan 15, 2020
0ae947e
New translations properties_Gridlines.md (Japanese)
arnaud4d Jan 15, 2020
082c386
New translations properties_Footers.md (Japanese)
arnaud4d Jan 15, 2020
e8df583
New translations checkbox_overview.md (Japanese)
arnaud4d Jan 15, 2020
d3d2f4f
New translations listbox_overview.md (Japanese)
arnaud4d Jan 15, 2020
a3a6424
New translations properties_Picture.md (Japanese)
arnaud4d Jan 15, 2020
2e93e2a
New translations properties_TextAndPicture.md (Japanese)
arnaud4d Jan 15, 2020
d6744bd
New translations properties_Display.md (Japanese)
arnaud4d Jan 15, 2020
2f295c8
session cookie
arnaud4d Jan 15, 2020
fe1256e
alignmentHomepage and cleanup
arnaud4d Jan 15, 2020
2870942
New translations gettingStarted.md (French)
arnaud4d Jan 16, 2020
ecba0f2
New translations $attributes.md (French)
arnaud4d Jan 16, 2020
71716d8
New translations REST_requests.md (French)
arnaud4d Jan 16, 2020
39873b0
New translations configuration.md (French)
arnaud4d Jan 16, 2020
17df873
New translations $method.md (French)
arnaud4d Jan 16, 2020
df1f46c
New translations en.json (French)
arnaud4d Jan 16, 2020
5441921
New translations $upload.md (French)
arnaud4d Jan 16, 2020
0d1c271
New translations subform_overview.md (French)
arnaud4d Jan 16, 2020
3005ae7
New translations authUsers.md (French)
arnaud4d Jan 16, 2020
bba0f94
New translations $asArray.md (French)
arnaud4d Jan 16, 2020
1e34df5
New translations $atomic_$atonce.md (French)
arnaud4d Jan 16, 2020
7b5604b
New translations $compute.md (French)
arnaud4d Jan 16, 2020
83d2898
New translations $distinct.md (French)
arnaud4d Jan 16, 2020
042a3b6
New translations $querypath.md (French)
arnaud4d Jan 16, 2020
b609369
New translations architecture.md (Japanese)
arnaud4d Jan 16, 2020
a864447
New translations configuration.md (Spanish)
arnaud4d Jan 16, 2020
47e6fb2
New translations en.json (Spanish)
arnaud4d Jan 16, 2020
6a85d2c
New translations authUsers.md (German)
arnaud4d Jan 16, 2020
30691b4
New translations en.json (German)
arnaud4d Jan 16, 2020
bb0916c
New translations configuration.md (German)
arnaud4d Jan 16, 2020
d992200
New translations authUsers.md (Spanish)
arnaud4d Jan 16, 2020
f3a3cbf
New translations authUsers.md (Portuguese)
arnaud4d Jan 16, 2020
1677cae
New translations configuration.md (Portuguese)
arnaud4d Jan 16, 2020
34ca0e3
New translations authUsers.md (Japanese)
arnaud4d Jan 16, 2020
41e1ef7
New translations en.json (Japanese)
arnaud4d Jan 16, 2020
050af0c
New translations configuration.md (Japanese)
arnaud4d Jan 16, 2020
37c241a
New translations $binary.md (Japanese)
arnaud4d Jan 16, 2020
e4a1438
New translations en.json (Portuguese)
arnaud4d Jan 16, 2020
a1bae12
Merge pull request #75 from 4d/fix/home-and-sidebar
arnaud4d Jan 16, 2020
4f5a4d6
Merge pull request #74 from 4d/l10n_develop
arnaud4d Jan 16, 2020
b5096e3
New translations en.json (Spanish)
arnaud4d Jan 16, 2020
13f6891
New translations en.json (German)
arnaud4d Jan 16, 2020
3c51a4e
New translations subform_overview.md (French)
arnaud4d Jan 16, 2020
14cff02
New translations en.json (French)
arnaud4d Jan 16, 2020
f692122
New translations en.json (Japanese)
arnaud4d Jan 16, 2020
2eaddab
New translations en.json (Portuguese)
arnaud4d Jan 16, 2020
5b2066f
Merge pull request #76 from 4d/l10n_develop
arnaud4d Jan 16, 2020
8d3b55f
New translations subform_overview.md (French)
arnaud4d Jan 17, 2020
83db568
New translations tabControl.md (French)
arnaud4d Jan 17, 2020
4486a78
New translations webArea_overview.md (French)
arnaud4d Jan 17, 2020
a3cf3ca
New translations data-types.md (Japanese)
arnaud4d Jan 17, 2020
776e9c8
New translations quick-tour.md (Japanese)
arnaud4d Jan 17, 2020
dacfd9c
New translations en.json (Japanese)
arnaud4d Jan 17, 2020
9533d8f
Merge pull request #77 from 4d/l10n_develop
arnaud4d Jan 17, 2020
081536d
Update languages.js
arnaud4d Jan 17, 2020
00be5b7
Update languages.js
arnaud4d Jan 17, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
124 changes: 124 additions & 0 deletions docs/REST/$asArray.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
---
id: asArray
title: $asArray
---


Returns the result of a query in an array (i.e. a collection) instead of a JSON object.


## Description

If you want to receive the response in an array, you just have to add `$asArray` to your REST request (*e.g.*, `$asArray=true`).

## Example
Here is an example or how to receive the response in an array.

`GET /rest/Company/?$filter="name begin a"&$top=3&$asArray=true`

**Response**:

````
[
{
"__KEY": 15,
"__STAMP": 0,
"ID": 15,
"name": "Alpha North Yellow",
"creationDate": "!!0000-00-00!!",
"revenues": 82000000,
"extra": null,
"comments": "",
"__GlobalStamp": 0
},
{
"__KEY": 34,
"__STAMP": 0,
"ID": 34,
"name": "Astral Partner November",
"creationDate": "!!0000-00-00!!",
"revenues": 90000000,
"extra": null,
"comments": "",
"__GlobalStamp": 0
},
{
"__KEY": 47,
"__STAMP": 0,
"ID": 47,
"name": "Audio Production Uniform",
"creationDate": "!!0000-00-00!!",
"revenues": 28000000,
"extra": null,
"comments": "",
"__GlobalStamp": 0
}
]
````

The same data in its default JSON format:

````
{
"__entityModel": "Company",
"__GlobalStamp": 50,
"__COUNT": 52,
"__FIRST": 0,
"__ENTITIES": [
{
"__KEY": "15",
"__TIMESTAMP": "2018-03-28T14:38:07.434Z",
"__STAMP": 0,
"ID": 15,
"name": "Alpha North Yellow",
"creationDate": "0!0!0",
"revenues": 82000000,
"extra": null,
"comments": "",
"__GlobalStamp": 0,
"employees": {
"__deferred": {
"uri": "/rest/Company(15)/employees?$expand=employees"
}
}
},
{
"__KEY": "34",
"__TIMESTAMP": "2018-03-28T14:38:07.439Z",
"__STAMP": 0,
"ID": 34,
"name": "Astral Partner November",
"creationDate": "0!0!0",
"revenues": 90000000,
"extra": null,
"comments": "",
"__GlobalStamp": 0,
"employees": {
"__deferred": {
"uri": "/rest/Company(34)/employees?$expand=employees"
}
}
},
{
"__KEY": "47",
"__TIMESTAMP": "2018-03-28T14:38:07.443Z",
"__STAMP": 0,
"ID": 47,
"name": "Audio Production Uniform",
"creationDate": "0!0!0",
"revenues": 28000000,
"extra": null,
"comments": "",
"__GlobalStamp": 0,
"employees": {
"__deferred": {
"uri": "/rest/Company(47)/employees?$expand=employees"
}
}
}
],
"__SENT": 3
}
````


99 changes: 99 additions & 0 deletions docs/REST/$atomic_$atonce.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
---
id: atomic_$atonce
title: $atomic/$atonce
---


Allows the actions in the REST request to be in a transaction. If there are no errors, the transaction is validated. Otherwise, the transaction is cancelled.


## Description
When you have multiple actions together, you can use `$atomic/$atonce` to make sure that none of the actions are completed if one of them fails. You can use either `$atomic` or `$atonce`.


## Example
We call the following REST request in a transaction.

`POST /rest/Employee?$method=update&$atomic=true`

**POST data**:

````
[
{
"__KEY": "1",
"__STAMP": 5,
"salary": 45000
},
{
"__KEY": "2",
"__STAMP": 10,
"salary": 99000
}
]
````

We get the following error in the second entity and therefore the first entity is not saved either:

````
{
"__ENTITIES": [
{
"__KEY": "1",
"__STAMP": 5,
"uri": "http://127.0.0.1:8081/rest/Employee(1)",
"ID": 1,
"firstName": "John",
"lastName": "Smith",
"fullName": "John Smith",
"gender": false,
"telephone": "4085551111",
"salary": 45000,
"employerName": "Adobe",
"employer": {
"__deferred": {
"uri": "http://127.0.0.1:8081/rest/Company(1)",
"__KEY": "1"
}
}
},
{
"__KEY": "2",
"__STAMP": 2,
"ID": 2,
"firstName": "Paula",
"lastName": "Miller",
"fullName": "Paula Miller",
"telephone": "4085559999",
"salary": 36000,
"employerName": "Adobe",
"employer": {
"__deferred": {
"uri": "http://127.0.0.1:8081/rest/Company(1)",
"__KEY": "1"
}
},
"__ERROR": [
{
"message": "Value cannot be greater than 60000",
"componentSignature": "dbmg",
"errCode": 1569
},
{
"message": "Entity fails validation",
"componentSignature": "dbmg",
"errCode": 1570
},
{
"message": "The entity# 1 of the datastore class \"Employee\" cannot be saved",
"componentSignature": "dbmg",
"errCode": 1517
}
]
}
]
}
````


>Even though the salary for the first entity has a value of 45000, this value was not saved to the server and the *timestamp (__STAMP)* was not modified either. If we reload the entity, we will see the previous value.
106 changes: 106 additions & 0 deletions docs/REST/$attributes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
---
id: attributes
title: $attributes
---

Allows selecting the related attribute(s) to get from the dataclass (*e.g.*, `Company(1)?$attributes=employees.lastname` or `Employee?$attributes=employer.name`).


## Description

When you have relation attributes in a dataclass, use `$attributes` to define the path of attributes whose values you want to get for the related entity or entities.

You can apply `$attributes` to an entity (*e.g.*, People(1)) or an entity selection (*e.g.*, People/$entityset/0AF4679A5C394746BFEB68D2162A19FF) .


- If `$attributes` is not specified in a query, or if the "*" value is passed, all available attributes are extracted. **Related entity** attributes are extracted with the simple form: an object with property `__KEY` (primary key). **Related entities** attributes are not extracted.

- If `$attributes` is specified for **related entity** attributes:
- `$attributes=relatedEntity`: the related entity is returned with simple form (deferred __KEY property (primary key)).
- `$attributes=relatedEntity.*`: all the attributes of the related entity are returned
- `$attributes=relatedEntity.attributePath1, relatedEntity.attributePath2, ...`: only those attributes of the related entity are returned.


- If `$attributes` is specified for **related entities** attributes:
- `$attributes=relatedEntities.*`: all the properties of all the related entities are returned
- `$attributes=relatedEntities.attributePath1, relatedEntities.attributePath2, ...`: only those attributes of the related entities are returned.



## Example with related entities

If we pass the following REST request for our Company datastore class (which has a relation attribute "employees"):

`GET /rest/Company(1)/?$attributes=employees.lastname`

**Response**:

```
{
"__entityModel": "Company",
"__KEY": "1",
"__TIMESTAMP": "2018-04-25T14:41:16.237Z",
"__STAMP": 2,
"employees": {
"__ENTITYSET": "/rest/Company(1)/employees?$expand=employees",
"__GlobalStamp": 50,
"__COUNT": 135,
"__FIRST": 0,
"__ENTITIES": [
{
"__KEY": "1",
"__TIMESTAMP": "2019-12-01T20:18:26.046Z",
"__STAMP": 5,
"lastname": "ESSEAL"
},
{
"__KEY": "2",
"__TIMESTAMP": "2019-12-04T10:58:42.542Z",
"__STAMP": 6,
"lastname": "JONES"
},
...
}
}
```

If you want to get all attributes from employees:

`GET /rest/Company(1)/?$attributes=employees.*`

If you want to get last name and job name attributes from employees:

`GET /rest/Company(1)/?$attributes=employees.lastname,employees.jobname`


## Example with related entity

If we pass the following REST request for our Employee datastore class (which has several relation attributes, including "employer"):


`GET /rest/Employee(1)?$attributes=employer.name`

**Response**:

```
{
"__entityModel": "Employee",
"__KEY": "1",
"__TIMESTAMP": "2019-12-01T20:18:26.046Z",
"__STAMP": 5,
"employer": {
"__KEY": "1",
"__TIMESTAMP": "2018-04-25T14:41:16.237Z",
"__STAMP": 0,
"name": "Adobe"
}
}
```

If you want to get all attributes of the employer:

`GET /rest/Employee(1)?$attributes=employer.*`

If you want to get the last names of all employees of the employer:

`GET /rest/Employee(1)?$attributes=employer.employees.lastname`
21 changes: 21 additions & 0 deletions docs/REST/$binary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
id: binary
title: $binary
---

Pass "true" to save the BLOB as a document (must also pass `$expand={blobAttributeName}`)

## Description

`$binary` allows you to save the BLOB as a document. You must also use the [`$expand`]($expand.md) command in conjunction with it.

When you make the following request:

```
GET /rest/Company(11)/blobAtt?$binary=true&$expand=blobAtt
```

You will be asked where to save the BLOB to disk:

![](assets/en/REST/binary.png)

Loading