From 70234a2455bb1f00cde24b9b54166ae15c4cb9a2 Mon Sep 17 00:00:00 2001 From: Tom Peltonen Date: Sun, 29 Jun 2025 10:36:33 +1000 Subject: [PATCH] Correcting JSON --- .../error-model/definitions/error-model.tmpl | 58 ++----------------- 1 file changed, 6 insertions(+), 52 deletions(-) diff --git a/api/error-model/error-model/definitions/error-model.tmpl b/api/error-model/error-model/definitions/error-model.tmpl index 5784ed2..4b8b9da 100644 --- a/api/error-model/error-model/definitions/error-model.tmpl +++ b/api/error-model/error-model/definitions/error-model.tmpl @@ -1,52 +1,6 @@ -# Sequence diagram - -This represents the sequence diagram for -service names {{ range .ServiceNames}}**{{.}}** {{ end }} - -```mermaid -sequenceDiagram - - participant consumer as Consumer - participant gateway as Gateway - participant microservice as ServiceName - participant feature as Svc Feature - participant authz as Authorisation - participant log as Logger -{{ range .Apis}}participant {{ .Name }} as Svc{{ .Name }} -{{ end }} - - consumer->>+gateway: {{.ServicePoints}} - activate consumer - - note right of gateway: Authentication check at GW - gateway->>+microservice: {{.ServicePoints}} - - microservice->>+authz: Validate requestor - note right of authz: Authorise to function - authz-->>-microservice: 200 or 401/403 status - - microservice->>+feature: Check feature switch - feature-->>-microservice: 200 or 401/403 status - - microservice-)log: log request/response - {{ range .Apis}} - microservice-->>+{{ .Name }}: link {{ .Url }} - note right of {{ .Name }}: Explanation of what happens - {{ .Name }}-->>-microservice: 200 OK response - {{ end }} - - alt 200 OK - microservice-->>gateway: 200 OK response - gateway-->>consumer: 200 OK response - else not OK, error - microservice-->>-gateway: !200 ERR response - gateway-->>-consumer: !200 ERR response - end - deactivate consumer - -``` - -***Note***: Adjust the default sequence diagram above - -Copyright {{.QaskxDot.ServiceOwner}} -Contact {{.QaskxDot.ServiceOwnerEmail}} +{ + "description": "Standard error model (api/def/err/err.tmpl)", + "example": 25, + "format": "integer", + "type": "number" +} \ No newline at end of file