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 10, 2023
1 parent af2d8b6 commit 052b8fa
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 46 deletions.
2 changes: 1 addition & 1 deletion api-specs/api/api.raml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#%RAML 1.0
---
title: commercetools Composable Commerce API
annotationTypes: !include types/annotations.raml
(products):
- Composable Commerce
baseUri: https://api.{region}.commercetools.com
Expand Down Expand Up @@ -36,7 +37,6 @@ traits:
localeProjecting: !include traits/locale-projecting.raml
storeProjecting: !include traits/store-projecting.raml
dataErasure: !include traits/data-erasure.raml
annotationTypes: !include types/annotations.raml
types: !include types/types.raml
mediaType: application/json
resourceTypes:
Expand Down
4 changes: 2 additions & 2 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
uses:
annotations: types/annotations.raml
(annotations.products):
- Checkout
version: v1
Expand Down Expand Up @@ -29,7 +31,5 @@ baseUriParameters:
region: australia-southeast1
provider: gcp
name: Australia (Google Cloud, Sydney)
uses:
annotations: types/annotations.raml

types: !include types/types.raml
7 changes: 3 additions & 4 deletions api-specs/connect/api.raml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#%RAML 1.0
---
title: commercetools Connect API
uses:
annotations: types/annotations.raml
common: types/common.raml
(annotations.products):
- Connect
version: v1
Expand Down Expand Up @@ -30,10 +33,6 @@ baseUriParameters:
provider: gcp
name: Australia (Google Cloud, Sydney)

uses:
annotations: types/annotations.raml
common: types/common.raml

types: !include types/types.raml

securitySchemes:
Expand Down
4 changes: 2 additions & 2 deletions api-specs/frontend-api/api.raml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#%RAML 1.0
---
title: commercetools Frontend API hub API
(products):
- Frontend
annotationTypes:
package:
type: string
Expand All @@ -13,6 +11,8 @@ annotationTypes:
type: array
items:
type: string
(products):
- Frontend

baseUri: https://{project}-{customer}.frontastic.io
baseUriParameters:
Expand Down
70 changes: 35 additions & 35 deletions api-specs/history/api.raml
Original file line number Diff line number Diff line change
@@ -1,6 +1,41 @@
#%RAML 1.0
---
title: commercetools Change History API
annotationTypes:
asMap:
type: object
properties:
key: string
value: string
docsBaseUri:
allowedTargets:
- API
type: string
docsBaseUriParameters:
allowedTargets:
- API
type: object
products:
allowedTargets:
- API
type: array
items:
type: string
serviceRegions:
allowedTargets:
- API
- SecuritySchemeSettings
type: array
items:
type: object
properties:
uri: string
region: string
provider: string
name: string
package:
type: string
allowedTargets: TypeDeclaration
(products):
- Composable Commerce
description: Fetch all Records from all resource types that match queryParameters.
Expand Down Expand Up @@ -49,41 +84,6 @@ securitySchemes:
oauth_2_0: !include oauth2.raml
securedBy: [oauth_2_0]
mediaType: application/json
annotationTypes:
asMap:
type: object
properties:
key: string
value: string
docsBaseUri:
allowedTargets:
- API
type: string
docsBaseUriParameters:
allowedTargets:
- API
type: object
products:
allowedTargets:
- API
type: array
items:
type: string
serviceRegions:
allowedTargets:
- API
- SecuritySchemeSettings
type: array
items:
type: object
properties:
uri: string
region: string
provider: string
name: string
package:
type: string
allowedTargets: TypeDeclaration
types: !include types/types.raml

resourceTypes:
Expand Down
4 changes: 2 additions & 2 deletions api-specs/ml/api.raml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#%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 All @@ -16,6 +14,8 @@ uses:
common: types/common.raml
similar-products: types/similar-products.raml
annotations: types/annotations.raml
(annotations.products):
- Composable Commerce

securitySchemes:
oauth_2_0: !include securitySchemes/oauth2.raml
Expand Down

0 comments on commit 052b8fa

Please sign in to comment.