Service declarations
Reference service declarations can be found inside asset-integration-starter project within dev-kits\asset-integration-starter\src\main\resources\META-INF directory.
The following are example service declarations from asset-integration-starter project:
services:
-
systemId: Foo
serviceName: simple-search
factoryClass: com.example.service.rest.SimpleSearchService
params:
supportedContentTypes: # Standard parameter, applicable only for simple-search service
Images: Images
customParam1: p1Value # String parameter
customParam2: 1234.56 # Numeric parameter
customParam3: # Key-value/Dictionary/Map parameter
p3Key1: p3Value1
p3Key2: p3Value2
p3Key3: p3Value3
customParam4: # Array parameter
- p4Value1
- p4Value2
- p4Value3
-
systemId: Foo
serviceName: resource-loader
factoryClass: com.example.service.rest.ResourceLoaderService
params:
customParam1: p1Value # String parameter
customParam2: 1234.56 # Numeric parameter
customParam3: # Key-value/Dictionary/Map parameter
p3Key1: p3Value1
p3Key2: p3Value2
p3Key3: p3Value3
customParam4: # Array parameter
- p4Value1
- p4Value2
- p4Value3
-
systemId: Foo
serviceName: asset-selection-callback
factoryClass: com.example.service.rest.ContentSelectionCallbackService
params:
customParam1: p1Value # String parameter
customParam2: 1234.56 # Numeric parameter
customParam3: # Key-value/Dictionary/Map parameter
p3Key1: p3Value1
p3Key2: p3Value2
p3Key3: p3Value3
customParam4: # Array parameter
- p4Value1
- p4Value2
- p4Value3
-
systemId: Foo
serviceName: custom-service
factoryClass: com.example.service.rest.ExampleExampleCustomService
params:
customParam1: p1Value # String parameter
customParam2: 1234.56 # Numeric parameter
customParam3: # Key-value/Dictionary/Map parameter
p3Key1: p3Value1
p3Key2: p3Value2
p3Key3: p3Value3
customParam4: # Array parameter
- p4Value1
- p4Value2
- p4Value3