Skip to content

Commit

Permalink
Updated API from documentation release
Browse files Browse the repository at this point in the history
  • Loading branch information
Auto Mation committed Oct 5, 2023
1 parent 094bf52 commit 8d9d12d
Show file tree
Hide file tree
Showing 31 changed files with 873 additions and 0 deletions.
1 change: 1 addition & 0 deletions api-specs/api/api.raml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ resourceTypes:
/product-discounts: !include resources/product-discounts.raml
/product-projections: !include resources/product-projections.raml
/product-selections: !include resources/product-selections.raml
/product-tailoring: !include resources/product-tailoring.raml
/product-types: !include resources/product-types.raml
/quotes: !include resources/quotes.raml
/quote-requests: !include resources/quote-requests.raml
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "action": "publish" }
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"action": "setDescription",
"description": { "en": "A description" },
"staged": true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"action": "setName",
"name": { "en": "A name" },
"staged": true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"action": "setSlug",
"slug": { "en": "a-slug" },
"staged": true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "action": "unpublish" }
11 changes: 11 additions & 0 deletions api-specs/api/examples/product-tailoring-create.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"product": {
"typeId": "product",
"id": "daf720e5-9e8e-4300-98db-3a3219327db9"
},
"store": { "key": "store-key" },
"name": { "en": "tailored name" },
"slug": { "en": "tailored-slug" },
"description": { "en": "tailored description" },
"publish": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"product": {
"typeId": "product",
"id": "daf720e5-9e8e-4300-98db-3a3219327db9"
},
"name": { "en": "tailored name" },
"slug": { "en": "tailored-slug" },
"description": { "en": "tailored description" },
"publish": false
}
92 changes: 92 additions & 0 deletions api-specs/api/examples/product-tailoring-list.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
"limit": 20,
"offset": 0,
"count": 2,
"results": [
{
"id": "207ee692-6002-4570-a78c-d15e7adbebbb",
"version": 2,
"versionModifiedAt": "2023-09-01T13:41:50.662Z",
"createdAt": "2023-09-01T13:26:10.475Z",
"lastModifiedAt": "2023-09-01T13:26:10.475Z",
"lastModifiedBy": {
"clientId": "ywjliB_u26xzmcJNKznjbJp4",
"isPlatformClient": false
},
"createdBy": {
"clientId": "ywjliB_u26xzmcJNKznjbJp4",
"isPlatformClient": false
},
"product": {
"typeId": "product",
"id": "daf720e5-9e8e-4300-98db-3a3219327db9"
},
"store": {
"typeId": "store",
"key": "store-key"
},
"current": {
"variants": [],
"searchKeywords": {}
},
"staged": {
"name": {
"en": "tailored name"
},
"description": {
"en": "tailored description"
},
"slug": {
"en": "tailored-slug"
},
"variants": [],
"searchKeywords": {}
},
"published": false,
"hasStagedChanges": true
},

{
"id": "207ee692-6002-4570-a78c-d15e7adbecc",
"version": 2,
"versionModifiedAt": "2023-09-01T13:42:50.662Z",
"createdAt": "2023-09-01T13:27:10.475Z",
"lastModifiedAt": "2023-09-01T14:26:10.475Z",
"lastModifiedBy": {
"clientId": "ywjliB_u26xzmcJNKznjbJp4",
"isPlatformClient": false
},
"createdBy": {
"clientId": "ywjliB_u26xzmcJNKznjbJp4",
"isPlatformClient": false
},
"product": {
"typeId": "product",
"id": "daf720e5-9e8e-4300-98db-3a3219327db9"
},
"store": {
"typeId": "store",
"key": "store-two"
},
"current": {
"variants": [],
"searchKeywords": {}
},
"staged": {
"name": {
"en": "Second store tailored name"
},
"description": {
"en": "This is a tailored description"
},
"slug": {
"en": "tailored-slug-two"
},
"variants": [],
"searchKeywords": {}
},
"published": false,
"hasStagedChanges": true
}
]
}
10 changes: 10 additions & 0 deletions api-specs/api/examples/product-tailoring-update.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"version": 1,
"actions": [
{
"action": "setDescription",
"description": { "en": "A description" },
"staged": true
}
]
}
42 changes: 42 additions & 0 deletions api-specs/api/examples/product-tailoring-updated.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"id": "207ee692-6002-4570-a78c-d15e7adbebbb",
"version": 2,
"versionModifiedAt": "2023-09-01T13:41:50.662Z",
"createdAt": "2023-09-01T13:26:10.475Z",
"lastModifiedAt": "2023-09-01T13:26:10.475Z",
"lastModifiedBy": {
"clientId": "ywjliB_u26xzmcJNKznjbJp4",
"isPlatformClient": false
},
"createdBy": {
"clientId": "ywjliB_u26xzmcJNKznjbJp4",
"isPlatformClient": false
},
"product": {
"typeId": "product",
"id": "daf720e5-9e8e-4300-98db-3a3219327db9"
},
"store": {
"typeId": "store",
"key": "store-key"
},
"current": {
"variants": [],
"searchKeywords": {}
},
"staged": {
"name": {
"en": "tailored name"
},
"description": {
"en": "A description"
},
"slug": {
"en": "tailored-slug"
},
"variants": [],
"searchKeywords": {}
},
"published": false,
"hasStagedChanges": true
}
42 changes: 42 additions & 0 deletions api-specs/api/examples/product-tailoring.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"id": "207ee692-6002-4570-a78c-d15e7adbebbb",
"version": 2,
"versionModifiedAt": "2023-09-01T13:41:50.662Z",
"createdAt": "2023-09-01T13:26:10.475Z",
"lastModifiedAt": "2023-09-01T13:26:10.475Z",
"lastModifiedBy": {
"clientId": "ywjliB_u26xzmcJNKznjbJp4",
"isPlatformClient": false
},
"createdBy": {
"clientId": "ywjliB_u26xzmcJNKznjbJp4",
"isPlatformClient": false
},
"product": {
"typeId": "product",
"id": "daf720e5-9e8e-4300-98db-3a3219327db9"
},
"store": {
"typeId": "store",
"key": "store-key"
},
"current": {
"variants": [],
"searchKeywords": {}
},
"staged": {
"name": {
"en": "tailored name"
},
"description": {
"en": "tailored description"
},
"slug": {
"en": "tailored-slug"
},
"variants": [],
"searchKeywords": {}
},
"published": false,
"hasStagedChanges": true
}
Loading

0 comments on commit 8d9d12d

Please sign in to comment.