Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
$kind: http-request
description: |-
Adds a product to a cart and creates or updates the matching cart line item. Include quantity, variants, addons, scheduling, or store location details when needed.
url: "{{base_url}}/{{api_prefix}}/{{namespace}}/carts/{id}/{product_id}"
url: "{{base_url}}/{{api_prefix}}/{{namespace}}/carts/{{cart_id}}/{{product_id}}"
method: POST
headers:
- key: Content-Type
value: application/json
pathVariables:
id: ""
product_id: ""
body:
type: json
content: |-
{
"addons": [],
"quantity": 1,
"scheduled_at": "scheduled_at_value_here",
"store_location": "store_location_value_here",
"variants": []
}
order: 1000
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,16 @@ body:
type: json
content: |-
{
"subject": "{{product_id}}",
"content": "Arrived on time and exactly as described.",
"rating": 5
}
scripts:
- type: afterResponse
code: |-
// Retrieve a Store review and Delete a Review both address {{review_id}};
// nothing set it.
var json_response = pm.response.json();
pm.environment.set("review_id", json_response.id);
language: text/javascript
order: 2000
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
$kind: http-request
description: Delete a Review
url: "{{base_url}}/{{api_prefix}}/{{namespace}}/reviews/{id}"
url: "{{base_url}}/{{api_prefix}}/{{namespace}}/reviews/{{review_id}}"
method: DELETE
pathVariables:
id: ""
order: 5000
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
$kind: http-request
description: Retrieve a Store review
url: "{{base_url}}/{{api_prefix}}/{{namespace}}/reviews/{id}"
url: "{{base_url}}/{{api_prefix}}/{{namespace}}/reviews/{{review_id}}"
method: GET
pathVariables:
id: ""
order: 4000
Loading