Skip to content

Commit

Permalink
docs(scope): fix REST and GQL examples. Refs: #677
Browse files Browse the repository at this point in the history
  • Loading branch information
lukashornych committed Dec 3, 2024
1 parent d1db4fe commit 2c6d60c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ mutation {
name: "name"
type: String
description: "The apt brand name."
filterable: true
sortable: true
filterableInScopes: [LIVE]
sortableInScopes: [LIVE]
}
}
]
Expand All @@ -54,7 +54,8 @@ mutation {
withGeneratedPrimaryKey: false
}
setEntitySchemaWithHierarchyMutation: {
withHierarchy: true
withHierarchy: true,
indexedInScopes: [LIVE]
}
allowLocaleInEntitySchemaMutation: {
locales: ["en", "de"]
Expand All @@ -64,8 +65,8 @@ mutation {
type: String
description: "The apt category name."
localized: true
filterable: true
sortable: true
filterableInScopes: [LIVE]
sortableInScopes: [LIVE]
}
}
]
Expand Down Expand Up @@ -104,8 +105,8 @@ mutation {
type: String
description: "The apt brand name."
localized: true
filterable: true
sortable: true
filterableInScopes: [LIVE]
sortableInScopes: [LIVE]
nullable: true
}
},
Expand All @@ -114,8 +115,8 @@ mutation {
name: "catalogCode"
type: String
description: "Product designation in your sales catalogue."
filterable: true
sortable: true
filterableInScopes: [LIVE]
sortableInScopes: [LIVE]
nullable: true
}
},
Expand All @@ -124,8 +125,8 @@ mutation {
name: "stockQuantity"
type: Integer
description: "Number of pieces in stock."
filterable: true
sortable: true
filterableInScopes: [LIVE]
sortableInScopes: [LIVE]
defaultValue: 0
}
},
Expand All @@ -144,8 +145,8 @@ mutation {
referencedEntityTypeManaged: true
cardinality: ZERO_OR_ONE
description: "Reference to the brand or manufacturer of the product."
indexed: true
faceted: true
indexedInScopes: [LIVE]
facetedInScopes: [LIVE]
}
},
{
Expand All @@ -155,7 +156,7 @@ mutation {
referencedEntityTypeManaged: true
cardinality: ZERO_OR_MORE
description: "Reference to one or more categories the product is listed in."
indexed: true
indexedInScopes: [LIVE]
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ PUT /rest/evita/schema
"name": "name",
"type": "String",
"description": "The apt brand name.",
"filterable": true,
"sortable": true
"filterableInScopes": ["LIVE"],
"sortableInScopes": ["LIVE"]
}
}
]
Expand All @@ -55,7 +55,8 @@ PUT /rest/evita/schema
"withGeneratedPrimaryKey": false
},
"setEntitySchemaWithHierarchyMutation": {
"withHierarchy": true
"withHierarchy": true,
"indexedInScopes": ["LIVE"]
},
"allowLocaleInEntitySchemaMutation": {
"locales": ["en", "de"]
Expand All @@ -65,8 +66,8 @@ PUT /rest/evita/schema
"type": "String",
"description": "The apt category name.",
"localized": true,
"filterable": true,
"sortable": true
"filterableInScopes": ["LIVE"],
"sortableInScopes": ["LIVE"]
}
}
]
Expand Down Expand Up @@ -105,8 +106,8 @@ PUT /rest/evita/schema
"type": "String",
"description": "The apt brand name.",
"localized": true,
"filterable": true,
"sortable": true,
"filterableInScopes": ["LIVE"],
"sortableInScopes": ["LIVE"],
"nullable": true
}
},
Expand All @@ -115,8 +116,8 @@ PUT /rest/evita/schema
"name": "catalogCode",
"type": "String",
"description": "Product designation in your sales catalogue.",
"filterable": true,
"sortable": true,
"filterableInScopes": ["LIVE"],
"sortableInScopes": ["LIVE"],
"nullable": true
}
},
Expand All @@ -125,8 +126,8 @@ PUT /rest/evita/schema
"name": "stockQuantity",
"type": "Integer",
"description": "Number of pieces in stock.",
"filterable": true,
"sortable": true,
"filterableInScopes": ["LIVE"],
"sortableInScopes": ["LIVE"],
"defaultValue": 0
}
},
Expand All @@ -145,8 +146,8 @@ PUT /rest/evita/schema
"referencedEntityTypeManaged": true,
"cardinality": "ZERO_OR_ONE",
"description": "Reference to the brand or manufacturer of the product.",
"indexed": true,
"faceted": true
"indexedInScopes": ["LIVE"],
"facetedInScopes": ["LIVE"]
}
},
{
Expand All @@ -156,7 +157,7 @@ PUT /rest/evita/schema
"referencedEntityTypeManaged": true,
"cardinality": "ZERO_OR_MORE",
"description": "Reference to one or more categories the product is listed in.",
"indexed": true
"indexedInScopes": ["LIVE"]
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ Stream<DynamicNode> testDocumentation() throws IOException {
Stream<DynamicTest> testSingleFileDocumentation() {
return this.createTests(
Environment.DEMO_SERVER,
getRootDirectory().resolve("documentation/user/en/use/connectors/grpc.md"),
getRootDirectory().resolve("documentation/user/en/get-started/create-first-database.md"),
new ExampleFilter[]{
ExampleFilter.CSHARP,
ExampleFilter.JAVA,
Expand Down

0 comments on commit 2c6d60c

Please sign in to comment.