Skip to content

Commit

Permalink
Updated api-reference from documentation release
Browse files Browse the repository at this point in the history
  • Loading branch information
Auto Mation committed Dec 2, 2024
1 parent 1afc50a commit fbdb41b
Show file tree
Hide file tree
Showing 375 changed files with 3,052 additions and 982 deletions.
5 changes: 3 additions & 2 deletions api-specs/api/api.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ baseUriParameters:
- europe-west1.gcp
- eu-central-1.aws
- australia-southeast1.gcp
- api.cn-northwest-1.aws.commercetools.cn
- eastus.azure
- germanywestcentral.azure
description: |
[Region](/../api/general-concepts#hosts) in which the Project is hosted.
version: v1
Expand Down Expand Up @@ -222,10 +222,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
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"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"action": "setGeoLocation",
"geoLocation": {
"type": "Point",
"coordinates": [48.163569, 11.558663]
"coordinates": [13.412119019109015, 52.50103330534661]
}
}
}
4 changes: 4 additions & 0 deletions api-specs/api/examples/Common/GeoJsonPoint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "Point",
"coordinates": [13.412119019109015, 52.50103330534661]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"id": "4e2b758f-f259-4c14-808e-2beb126bc0f1",
"typeId": "key-value-document"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"action": "setAddressCustomField",
"name": "ExampleStringTypeField",
"value": "TextString",
"addressId": "{{address-id}}"
}
"action": "setAddressCustomField",
"name": "exampleStringField",
"value": "TextString",
"addressId": "{{address-id}}"
}
Loading

0 comments on commit fbdb41b

Please sign in to comment.