Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated Specs Update #2043

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 2 additions & 3 deletions api-specs/api/api.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ baseUriParameters:
- europe-west1.gcp
- eu-central-1.aws
- australia-southeast1.gcp
- api.cn-northwest-1.aws.commercetools.cn
- eastus.azure
description: |
[Region](/../api/general-concepts#hosts) in which the Project is hosted.
version: v1
Expand Down Expand Up @@ -222,10 +220,11 @@ resourceTypes:
body:
application/json:
type: ProjectUpdate
example: !include /examples/project-update.example.json
responses:
200:
body:
example: !include examples/project.example.json
example: !include examples/project-update-response.example.json
type: Project
/as-associate: !include resources/as-associate.raml
/associate-roles: !include resources/associate-roles.raml
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"action": "setCustomField",
"name": "ExampleStringTypeField",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
"exampleStringField": "TextString"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"action": "setCustomField",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"action": "setCustomType",
"type": {
"id": "{{type-id}}",
"typeId": "type"
},
"fields": {
"exampleStringField": "TextString"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"action": "setAddressCustomField",
"name": "ExampleStringTypeField",
"name": "exampleStringField",
"value": "TextString",
"addressId": "{{address-id}}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
"exampleStringField": "TextString"
},
"addressId": "{{address-id}}"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"action": "setCustomField",
"name": "ExampleStringTypeField",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
"exampleStringField": "TextString"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"results": [
{
"id": "e41337a0-ea96-4ddc-a9a4-d267976f21e0",
"relevance": 0.9264881
},
{
"id": "05cd5998-015c-4232-8943-ff8a1880bcbc",
"relevance": 0.6989829
},
{
"id": "09c3c5a2-6569-49dd-b021-af5de4cf4b02",
"relevance": 0.6989829
}
],
"limit": 100,
"offset": 0,
"total": 3
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"status": "Indexing",
"states": {
"indexed": 43242,
"failed": 0,
"estimatedTotal": 100000
},
"startedAt": "2023-08-15T12:56:07.89Z",
"retryCount": 2,
"lastModifiedAt": "2023-08-15T12:56:07.89Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"query": {
"fullText": {
"field": "all",
"value": "plumbing"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
"exampleStringField": "TextString"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"action": "setBillingAddressCustomField",
"name": "ExampleStringTypeField",
"value": "TextString"
}
"action": "setBillingAddressCustomField",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"action": "setBillingAddressCustomType",
"type": {
"id": "{{type-id}}",
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
}
"action": "setBillingAddressCustomType",
"type": {
"id": "{{type-id}}",
"typeId": "type"
},
"fields": {
"exampleStringField": "TextString"
}
}
2 changes: 1 addition & 1 deletion api-specs/api/examples/Cart/CartSetCustomFieldAction.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"action": "setCustomField",
"name": "ExampleStringTypeField",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"action": "setCustomLineItemCustomField",
"customLineItemId": "{{customLineItemId}}",
"name": "ExampleStringTypeField",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
"exampleStringField": "TextString"
},
"customLineItemId": "{{customLineItemId}}"
}
2 changes: 1 addition & 1 deletion api-specs/api/examples/Cart/CartSetCustomTypeAction.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
"exampleStringField": "TextString"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"action": "setItemShippingAddressCustomField",
"addressKey": "{{address-key}}",
"name": "ExampleStringTypeField",
"value": "TextString"
}
"action": "setItemShippingAddressCustomField",
"addressKey": "{{address-key}}",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"action": "setItemShippingAddressCustomType",
"addressKey": "{{address-key}}",
"type": {
"id": "{{type-id}}",
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
}
"action": "setItemShippingAddressCustomType",
"addressKey": "{{address-key}}",
"type": {
"id": "{{type-id}}",
"typeId": "type"
},
"fields": {
"exampleStringField": "TextString"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"action": "setLineItemCustomField",
"lineItemId": "{{lineItemId}}",
"name": "ExampleStringTypeField",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
"exampleStringField": "TextString"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"action": "setShippingAddressCustomField",
"name": "ExampleStringTypeField",
"value": "TextString"
}
"action": "setShippingAddressCustomField",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"action": "setShippingAddressCustomType",
"type": {
"id": "{{type-id}}",
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
}
"action": "setShippingAddressCustomType",
"type": {
"id": "{{type-id}}",
"typeId": "type"
},
"fields": {
"exampleStringField": "TextString"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"action": "setShippingCustomField",
"shippingKey": "shippingMethodKey1",
"name": "ExampleStringTypeField",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
"exampleStringField": "TextString"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"currencyCode": "EUR",
"centAmount": 40099
}
]
],
"applicationMode": "IndividualApplication"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"action": "setCustomField",
"name": "ExampleStringTypeField",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
"exampleStringField": "TextString"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"action": "setAssetCustomField",
"assetId": "{{assetId}}",
"name": "ExampleStringTypeField",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
"exampleStringField": "TextString"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"action": "setCustomField",
"name": "ExampleStringTypeField",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
"exampleStringField": "TextString"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"action": "setAddressCustomField",
"name": "ExampleStringTypeField",
"value": "TextString"
}
"action": "setAddressCustomField",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"action": "setAddressCustomType",
"type": {
"id": "{{type-id}}",
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
}
"action": "setAddressCustomType",
"type": {
"id": "{{type-id}}",
"typeId": "type"
},
"fields": {
"exampleStringField": "TextString"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"action": "setCustomField",
"name": "ExampleStringTypeField",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
"exampleStringField": "TextString"
}
}
Loading
Loading