Skip to content

Commit 4e94fff

Browse files
authored
Merge pull request #322 from code0-tech/feat/#321
Rename body to payload for http respond function
2 parents 587fc17 + 3f084c9 commit 4e94fff

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

definitions/rest/data_types/rest_adapter_input.proto.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
"linkedDataTypeIdentifiers": [
2626
"OBJECT"
2727
],
28-
"type": "{ body: T, headers: OBJECT<{}> }"
28+
"type": "{ payload: T, headers: OBJECT<{}> }"
2929
}

definitions/standard/data_types/object/http_request.proto.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"content": "HTTP Request"
1919
}
2020
],
21-
"type": "{ method: HTTP_METHOD, url: HTTP_URL, body: T, headers: OBJECT<{}> }",
21+
"type": "{ http_method: HTTP_METHOD, url: HTTP_URL, payload: T, headers: OBJECT<{}> }",
2222
"genericKeys": ["T"],
2323
"rules": [],
2424
"linkedDataTypeIdentifiers": [

definitions/standard/data_types/object/http_response.proto.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020
],
2121
"genericKeys": ["T"],
22-
"type": "{ body: T, headers: OBJECT<{}>, status_code: HTTP_STATUS_CODE }",
22+
"type": "{ payload: T, headers: OBJECT<{}>, http_status_code: HTTP_STATUS_CODE }",
2323
"linkedDataTypeIdentifiers": [
2424
"HTTP_STATUS_CODE",
2525
"OBJECT"

definitions/standard/runtime_functions/http/http_request_create.proto.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"name": [
5959
{
6060
"code": "en-US",
61-
"content": "Request Body"
61+
"content": "Request Payload"
6262
}
6363
],
6464
"description": [
@@ -93,7 +93,7 @@
9393
"displayMessage": [
9494
{
9595
"code": "en-US",
96-
"content": "Create Http-Request with Method: ${http_method}, Headers: ${headers}, Url: ${url} and Payload: ${payload}"
96+
"content": "Create HTTP-Request to ${url} with ${payload}"
9797
}
9898
],
9999
"deprecationMessage": [],

definitions/standard/runtime_functions/http/http_response_create.proto.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"name": [
4242
{
4343
"code": "en-US",
44-
"content": "Request Body"
44+
"content": "Request Payload"
4545
}
4646
],
4747
"description": [
@@ -76,7 +76,7 @@
7676
"displayMessage": [
7777
{
7878
"code": "en-US",
79-
"content": "Create Http-Response with Method: ${http_method}, Headers: ${headers} and Payload: ${payload}"
79+
"content": "Create HTTP-Response for status ${http_status_code} and payload ${payload}"
8080
}
8181
],
8282
"deprecationMessage": [],

0 commit comments

Comments
 (0)