forked from finos/architecture-as-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request finos#166 from willosborne/top-level-nodes
Top level nodes
- Loading branch information
Showing
3 changed files
with
297 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,184 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/finos-labs/architecture-as-code/main/calm/draft/2024-03/meta/calm.json", | ||
"$id": "https://raw.githubusercontent.com/finos-labs/architecture-as-code/main/calm/pattern/api-gateway", | ||
"title": "API Gateway Pattern", | ||
"type": "object", | ||
"properties": { | ||
"nodes": { | ||
"type": "array", | ||
"minItems": 3, | ||
"prefixItems": [ | ||
{ | ||
"$ref": "https://raw.githubusercontent.com/finos-labs/architecture-as-code/main/calm/draft/2024-03/meta/core.json#/defs/node", | ||
"properties": { | ||
"ingress-host": { | ||
"type": "string" | ||
}, | ||
"ingress-port": { | ||
"type": "integer" | ||
}, | ||
"well-known-endpoint": { | ||
"type": "string" | ||
}, | ||
"description": { | ||
"const": "The API Gateway used to verify authorization and access to downstream system" | ||
}, | ||
"type": { | ||
"const": "system" | ||
}, | ||
"name": { | ||
"const": "API Gateway" | ||
}, | ||
"unique-id": { | ||
"const": "api-gateway" | ||
} | ||
}, | ||
"required": [ | ||
"ingress-host", | ||
"ingress-port", | ||
"well-known-endpoint" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://raw.githubusercontent.com/finos-labs/architecture-as-code/main/calm/draft/2024-03/meta/core.json#/defs/node", | ||
"properties": { | ||
"description": { | ||
"const": "The API Consumer making an authenticated and authorized request" | ||
}, | ||
"type": { | ||
"const": "system" | ||
}, | ||
"name": { | ||
"const": "Python Based API Consumer" | ||
}, | ||
"unique-id": { | ||
"const": "api-consumer" | ||
} | ||
} | ||
}, | ||
{ | ||
"$ref": "https://raw.githubusercontent.com/finos-labs/architecture-as-code/main/calm/draft/2024-03/meta/core.json#/defs/node", | ||
"properties": { | ||
"host": { | ||
"type": "string" | ||
}, | ||
"port": { | ||
"type": "integer" | ||
}, | ||
"description": { | ||
"const": "The API Producer serving content" | ||
}, | ||
"type": { | ||
"const": "system" | ||
}, | ||
"name": { | ||
"const": "Java Based API Producer" | ||
}, | ||
"unique-id": { | ||
"const": "api-producer" | ||
} | ||
}, | ||
"required": [ | ||
"host", | ||
"port" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://raw.githubusercontent.com/finos-labs/architecture-as-code/main/calm/draft/2024-03/meta/core.json#/defs/node", | ||
"properties": { | ||
"description": { | ||
"const": "The Identity Provider used to verify the bearer token" | ||
}, | ||
"type": { | ||
"const": "system" | ||
}, | ||
"name": { | ||
"const": "Identity Provider" | ||
}, | ||
"unique-id": { | ||
"const": "idp" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"relationships": { | ||
"type": "array", | ||
"minItems": 3, | ||
"prefixItems": [ | ||
{ | ||
"$ref": "https://raw.githubusercontent.com/finos-labs/architecture-as-code/main/calm/draft/2024-03/meta/core.json#/defs/relationship", | ||
"properties": { | ||
"unique-id": { | ||
"const": "api-consumer-api-gateway" | ||
}, | ||
"relationship-type": { | ||
"const": { | ||
"connects": { | ||
"source": "api-consumer", | ||
"destination": "api-gateway" | ||
} | ||
} | ||
}, | ||
"parties": { | ||
}, | ||
"protocol": { | ||
"const": "HTTPS" | ||
}, | ||
"authentication": { | ||
"const": "OAuth2" | ||
} | ||
} | ||
}, | ||
{ | ||
"$ref": "https://raw.githubusercontent.com/finos-labs/architecture-as-code/main/calm/draft/2024-03/meta/core.json#/defs/relationship", | ||
"properties": { | ||
"unique-id": { | ||
"const": "api-gateway-idp" | ||
}, | ||
"relationship-type": { | ||
"const": { | ||
"connects": { | ||
"source": "api-gateway", | ||
"destination": "idp" | ||
} | ||
} | ||
}, | ||
"protocol": { | ||
"const": "HTTPS" | ||
} | ||
} | ||
}, | ||
{ | ||
"$ref": "https://raw.githubusercontent.com/finos-labs/architecture-as-code/main/calm/draft/2024-03/meta/core.json#/defs/relationship", | ||
"properties": { | ||
"unique-id": { | ||
"const": "api-gateway-api-producer" | ||
}, | ||
"relationship-type": { | ||
"const": { | ||
"connects": { | ||
"source": "api-gateway", | ||
"destination": "api-producer" | ||
} | ||
} | ||
}, | ||
"protocol": { | ||
"const": "HTTPS" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"extra-property-constant": { | ||
"const": "constant value" | ||
}, | ||
"extra-property-array": { | ||
"type": "array" | ||
} | ||
}, | ||
"required": [ | ||
"nodes", | ||
"relationships" | ||
] | ||
} |