Skip to content

Commit a980bcc

Browse files
committed
TASK: Updating RAML types, Postman and OAS definition
1 parent b71e64c commit a980bcc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+822
-561
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
meta {
2+
name: SetBusinessUnit
3+
type: http
4+
seq: 727
5+
}
6+
7+
post {
8+
url: {{apiUrl}}/{{project-key}}/shopping-lists/{{shopping-list-id}}
9+
body: json
10+
auth: inherit
11+
}
12+
13+
body:json {
14+
{
15+
"version": {{shopping-list-version}},
16+
"actions": [
17+
{
18+
"action" : "setBusinessUnit",
19+
"businessUnit" : {
20+
"key" : "{{business-unit-key}}",
21+
"typeId" : "business-unit"
22+
}
23+
}
24+
]
25+
}
26+
}
27+
28+
query {
29+
~expand:
30+
}
31+
32+
script:post-response {
33+
var data = res.body;
34+
if(res.status == 200 || res.status == 201) {
35+
if(data.results && data.results[0] && data.results[0].id && data.results[0].version){
36+
bru.setEnvVar("shopping-list-id", data.results[0].id);
37+
bru.setEnvVar("shopping-list-version", data.results[0].version);
38+
}
39+
if(data.results && data.results[0] && data.results[0].key){
40+
bru.setEnvVar("shopping-list-key", data.results[0].key);
41+
}
42+
if(data.version){
43+
bru.setEnvVar("shopping-list-version", data.version);
44+
}
45+
if(data.id){
46+
bru.setEnvVar("shopping-list-id", data.id);
47+
}
48+
if(data.key){
49+
bru.setEnvVar("shopping-list-key", data.key);
50+
}
51+
52+
}
53+
}
54+
55+
assert {
56+
res.status: in [200, 201]
57+
}

bruno/api/Project/Shopping-lists/Update actions/SetCustomField.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
meta {
22
name: SetCustomField
33
type: http
4-
seq: 727
4+
seq: 728
55
}
66

77
post {

bruno/api/Project/Shopping-lists/Update actions/SetCustomType.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
meta {
22
name: SetCustomType
33
type: http
4-
seq: 728
4+
seq: 729
55
}
66

77
post {

bruno/api/Project/Shopping-lists/Update actions/SetCustomer.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
meta {
22
name: SetCustomer
33
type: http
4-
seq: 729
4+
seq: 730
55
}
66

77
post {

bruno/api/Project/Shopping-lists/Update actions/SetDeleteDaysAfterLastModification.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
meta {
22
name: SetDeleteDaysAfterLastModification
33
type: http
4-
seq: 730
4+
seq: 731
55
}
66

77
post {

bruno/api/Project/Shopping-lists/Update actions/SetDescription.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
meta {
22
name: SetDescription
33
type: http
4-
seq: 731
4+
seq: 732
55
}
66

77
post {

bruno/api/Project/Shopping-lists/Update actions/SetKey.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
meta {
22
name: SetKey
33
type: http
4-
seq: 732
4+
seq: 733
55
}
66

77
post {

bruno/api/Project/Shopping-lists/Update actions/SetLineItemCustomField.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
meta {
22
name: SetLineItemCustomField
33
type: http
4-
seq: 733
4+
seq: 734
55
}
66

77
post {

bruno/api/Project/Shopping-lists/Update actions/SetLineItemCustomType.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
meta {
22
name: SetLineItemCustomType
33
type: http
4-
seq: 734
4+
seq: 735
55
}
66

77
post {

bruno/api/Project/Shopping-lists/Update actions/SetSlug.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
meta {
22
name: SetSlug
33
type: http
4-
seq: 735
4+
seq: 736
55
}
66

77
post {

0 commit comments

Comments
 (0)