Correcting JSON take 2
parent
70234a2455
commit
8c52a7ccf4
|
|
@ -1,52 +1,6 @@
|
||||||
# Sequence diagram
|
{
|
||||||
|
"description": "Standard error model (api/def/err/err.tmpl)",
|
||||||
This represents the sequence diagram for
|
"example": 25,
|
||||||
service names {{ range .ServiceNames}}**{{.}}** {{ end }}
|
"format": "integer",
|
||||||
|
"type": "number"
|
||||||
```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}}
|
|
||||||
|
|
@ -1,52 +1,6 @@
|
||||||
# Sequence diagram
|
{
|
||||||
|
"description": "Standard error model (api/def/err/err.tmpl)",
|
||||||
This represents the sequence diagram for
|
"example": 25,
|
||||||
service names {{ range .ServiceNames}}**{{.}}** {{ end }}
|
"format": "integer",
|
||||||
|
"type": "number"
|
||||||
```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}}
|
|
||||||
Loading…
Reference in New Issue