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 2, 2023
1 parent 4bf8c87 commit d4256ab
Show file tree
Hide file tree
Showing 15 changed files with 73 additions and 23 deletions.
4 changes: 3 additions & 1 deletion api-specs/api/api.raml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#%RAML 1.0
---
title: commercetools Composable Commerce
title: commercetools Composable Commerce API
(products):
- Composable Commerce
baseUri: https://api.{region}.commercetools.com
(sdkBaseUri): https://api.europe-west1.gcp.commercetools.com
baseUriParameters:
Expand Down
6 changes: 6 additions & 0 deletions api-specs/api/types/annotations.raml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ sdkBaseUri:
allowedTargets:
- API
type: string
products:
allowedTargets:
- API
type: array
items:
type: string
docsBaseUri:
allowedTargets:
- API
Expand Down
2 changes: 2 additions & 0 deletions api-specs/checkout/api.raml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#%RAML 1.0
---
title: commercetools Checkout API
(annotations.products):
- Checkout
version: v1
mediaType: application/json
baseUri: https://checkout.{region}.commercetools.com
Expand Down
6 changes: 6 additions & 0 deletions api-specs/checkout/types/annotations.raml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ annotationTypes:
allowedTargets:
- API
type: string
products:
allowedTargets:
- API
type: array
items:
type: string
serviceRegions:
allowedTargets:
- API
Expand Down
2 changes: 2 additions & 0 deletions api-specs/connect/api.raml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#%RAML 1.0
---
title: commercetools Connect API
(annotations.products):
- Connect
version: v1
mediaType: application/json
baseUri: https://connect.{region}.commercetools.com
Expand Down
6 changes: 6 additions & 0 deletions api-specs/connect/types/annotations.raml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ annotationTypes:
allowedTargets:
- API
type: string
products:
allowedTargets:
- API
type: array
items:
type: string
serviceRegions:
allowedTargets:
- API
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ discriminatorValue: addPrivateProject
example: !include ../../../examples/connector/updates/ConnectorAddPrivateProjectAction.json
description: |
Allow a Composable Commerce Project to access a private Connector.
Attempting to add a `privateProject` to a non-private ConnectorStaged returns the [ConnectorStagedNotPrivate](ctp:connect:type:ConnectorStagedNotPrivateError) error.
properties:
privateProject:
Expand Down
12 changes: 10 additions & 2 deletions api-specs/frontend-api/api.raml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
#%RAML 1.0
---
title: Frontastic API hub
title: commercetools Frontend API hub API
(products):
- Frontend
annotationTypes:
package:
type: string
allowedTargets: TypeDeclaration
products:
allowedTargets:
- API
type: array
items:
type: string

baseUri: https://{project}-{customer}.frontastic.io
baseUriParameters:
Expand Down Expand Up @@ -67,7 +75,7 @@ traits:
application/json:
type: Error
example: !include ./examples/action-error.json

/frontastic:
/context: !include resources/FrontasticContext.raml
/page: !include resources/FrontasticPage.raml
Expand Down
2 changes: 1 addition & 1 deletion api-specs/frontend-api/types/DataSourceResponse.raml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ type: object
properties:
dataSourcePayload:
type: object
previewPayload:
previewPayload:
type: object
2 changes: 1 addition & 1 deletion api-specs/frontend-api/types/PagePreviewContext.raml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ displayName: PagePreviewContext
type: object
properties:
customerName:
type: string
type: string
32 changes: 16 additions & 16 deletions api-specs/frontend-api/types/RedirectResponse.raml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
displayName: RedirectResponse
type: object
properties:
statusCode:
type: number
reason:
type: string
enum:
- locale mismatch
- redirect exists for path
- dynamic page redirect
targetType:
type: string
enum:
- page folder
- link
- unknown
target:
type: string
statusCode:
type: number
reason:
type: string
enum:
- locale mismatch
- redirect exists for path
- dynamic page redirect
targetType:
type: string
enum:
- page folder
- link
- unknown
target:
type: string
10 changes: 9 additions & 1 deletion api-specs/history/api.raml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#%RAML 1.0
---
title: Change History API
title: commercetools Change History API
(products):
- Composable Commerce
description: Fetch all Records from all resource types that match queryParameters.
version: 1
baseUri: https://history.europe-west1.gcp.commercetools.com
Expand Down Expand Up @@ -61,6 +63,12 @@ annotationTypes:
allowedTargets:
- API
type: object
products:
allowedTargets:
- API
type: array
items:
type: string
serviceRegions:
allowedTargets:
- API
Expand Down
6 changes: 6 additions & 0 deletions api-specs/importapi/annotationTypes/annotations.raml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ annotationTypes:
allowedTargets:
- API
type: object
products:
allowedTargets:
- API
type: array
items:
type: string
serviceRegions:
allowedTargets:
- API
Expand Down
2 changes: 2 additions & 0 deletions api-specs/importapi/api.raml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#%RAML 1.0
---
title: commercetools Composable Commerce Import API
(annotations.products):
- Composable Commerce
version: v1
mediaType: application/json
baseUri: https://import.europe-west1.gcp.commercetools.com
Expand Down
2 changes: 2 additions & 0 deletions api-specs/ml/api.raml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#%RAML 1.0
---
title: commercetools Composable Commerce Machine Learning API
(annotations.products):
- Composable Commerce
version: v1
mediaType: application/json
baseUri: https://ml-eu.europe-west1.gcp.commercetools.com
Expand Down

0 comments on commit d4256ab

Please sign in to comment.