Relations
Relations are directional associations with other entities. To clear a relation, simply update or upsert a catalog entity with the relation identifier and null
as the value instead of the entity identifiers. Omitted relations will not be affected.
The key in the object is the distinct relation identifier.
Example
{
"consumesAPI": ["payment-api", "user-api"],
"dependsOn": ["database-service"],
"providesAPI": ["order-processing-api"]
}
Properties
Relations are stored as key-value pairs where:
Key | Type | Description |
---|---|---|
<relation_identifier> |
array |
An array of entity identifiers that this entity has the specified relation with. The relation identifier is defined in your catalog configuration. |
Common Relation Types
Common relation identifiers include:
consumesAPI
- APIs that this entity consumesdependsOn
- Services or resources this entity depends onprovidesAPI
- APIs that this entity providesowns
- Resources owned by this entityuses
- External tools or services used by this entity