Symptoms

In APS1 I could define services hierarchy in APP-META.xml:

<service id="top-service">
<...>
    <service id="sub-service">
    <...>
    </service>
    <...>
</service>

How it should be done in APS2?

Resolution

APS2 services are now linked based on relations node specified in schema of each resource

For example for main customer service (aka tenant) to be able to read settings from main provider service (aka globals) there should be the following relations:

  • in globals.schema:

    "relations": {
        "tenant": {
    "type": "http://application.com/tenant/1.0",
    "collection": true
        }}
    
  • in tenant.schema:

    "relations": {
    "globals": {
      "type": "http://application.com/globals/1.0",
      "required": true,
      "collection": false
    }}
    

Internal content