Changed api response "result" to "data"

This commit is contained in:
2018-11-07 16:05:21 +00:00
parent e2330974f6
commit 6c7376f2e8
27 changed files with 227 additions and 270 deletions

View File

@@ -13,7 +13,7 @@ All successful GET responses have a standard format:
```json
{
"Result": {
"data": {
"id": 150,
"name": "Handmade Rubber Pizza",
...etc...
@@ -21,7 +21,7 @@ All successful GET responses have a standard format:
}
```
The results of the response are always contained in the `result` property and could be a single object, a collection or in some cases nothing at all.
The results of the response are always contained in the `data` property and could be a single object, a collection or in some cases nothing at all.
HTTP Status Code is set in the header.
### GET COLLECTION RESPONSE
@@ -38,7 +38,7 @@ Response:
```json
{
"result": [
"data": [
...collection...
],
"paging": {