Servicedeklarationen

Referenzservicedeklarationen finden Sie im asset-integration-starter-Projekt innerhalb des dev-kits\asset-integration-starter\src\main\resources\META-INF-Verzeichnisses.

Im folgenden finden Sie Beispielservicedeklarationen aus dem asset-integration-starter-Projekt:

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.CustomService
    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