Skip to content

Commit

Permalink
Add sequence diagram section to docs/README; use PlantUML proxy to re…
Browse files Browse the repository at this point in the history
…nder svg (#51)

* Sequence diagrams linked in README; PlantUML proxy render for sequence diags

Add Sequence Diagrams section to the Docs/README.md; create a new sequence diagram .md file for each sequence diagram referenced from README; incorporate PlantUML proxy service to render the sequence diagrams within each new sequence page.

* Update PISPTransactionApi.puml

Fix color names

Co-authored-by: Paweł Marzec <[email protected]>
  • Loading branch information
millerabel and eoln authored Mar 8, 2021
1 parent 1cd8a66 commit ec9d504
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
5 changes: 5 additions & 0 deletions docs/DFSPTransactionModelSeq.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## DFSP Transaction Model
How a DFSP experiences a PISP transaction

![](http://www.plantuml.com/plantuml/proxy?cache=no&src=https://raw.githubusercontent.com/mojaloop/thirdparty-scheme-adapter/master/docs/sequence/DFSPTransactionModel.puml&fmt=svg)

5 changes: 5 additions & 0 deletions docs/PISPTransactionAPISeq.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# PISP Transaction API
Example PISP Transaction

![](http://www.plantuml.com/plantuml/proxy?cache=no&src=https://raw.githubusercontent.com/mojaloop/thirdparty-scheme-adapter/master/docs/sequence/PISPTransactionApi.puml&fmt=svg)

5 changes: 5 additions & 0 deletions docs/PISPTransactionModelSeq.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# PISP Transaction Model
How a PISP experiences a transaction

![](http://www.plantuml.com/plantuml/proxy?cache=no&src=https://raw.githubusercontent.com/mojaloop/thirdparty-scheme-adapter/master/docs/sequence/PISPTransactionModel.puml&fmt=svg)

8 changes: 8 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@
- Where external is for communication between the DFSP and the adapter
- And internal is for communication between the adapter and the adapter

## Sequence Diagrams
[DFSP Transaction Model](./DFSPTransactionModelSeq.md)
How a DFSP experiences a PISP transaction

[PISP Transaction Model](./PISPTransactionModelSeq.md)
How a PISP experiences a transaction

[PISP Transaction API](./PISPTransactionAPISeq.md)
Example PISP Transaction

## TODO:

Expand Down
5 changes: 3 additions & 2 deletions docs/sequence/PISPTransactionApi.puml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ participant "AUTH-SERVICE" as AUTHS

== Party Lookup ==
autonumber 1 "<b>LOOK-#</b>"
rnote right of PISP #Light
rnote right of PISP #LightBlue
POST /thirdpartyTransactions
{
transactionRequestId: "12345",
Expand Down Expand Up @@ -71,7 +71,7 @@ deactivate PISP

== Initate Transaction ==
autonumber 1 "<b>INIT-#</b>"
rnote right of PISP #Light
rnote right of PISP #LightBlue
POST /thirdpartyTransactions/{transactionRequestId}/initiate
{
sourceAccountId: "dfspa.alice.1234",
Expand Down Expand Up @@ -244,6 +244,7 @@ deactivate PISP

== Approve Transaction ==
autonumber 1 "<b>APPR-#</b>"
rnote right of PISP #LightBlue
rnote right of PISP #Light
POST /thirdpartyTransactions/{id}/approve
{
Expand Down

0 comments on commit ec9d504

Please sign in to comment.