Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save muhammadghazali/5531854 to your computer and use it in GitHub Desktop.
Save muhammadghazali/5531854 to your computer and use it in GitHub Desktop.
Event List Request Sequence Diagram
Title: Event List request should return response in JSON
Client->Web API\nRouters: Request Event List\nwith max. 15 items on the list\n(Accept: application/json)
Note right of Web API\nRouters: Is requested\n format accepted?\nYes!
Web API\nRouters->Data Access: Get Event List
Note right of Data Access: Retrieve the actual\n data on DB
Data Access->Web API\nRouters: Return raw data
Note right of Web API\nRouters: Populate resource\n in JSON
Web API\nRouters->Client: Send response\n(Content-Type: application/json)

Build the diagram using http://bramp.github.io/js-sequence-diagrams/

Title: Event List request should return response in XML
Client->Web API\nRouters: Request Event List\nwith max. 15 items on the list\n(Accept: application/xml)
Note right of Web API\nRouters: Is requested\n format accepted?\nYes!
Web API\nRouters->Data Access: Get Event List
Note right of Data Access: Retrieve the actual\n data on DB
Data Access->Web API\nRouters: Return raw data
Note right of Web API\nRouters: Populate resource\n in XML
Web API\nRouters->Client: Send response\n(Content-Type: application/xml)

Build the diagram using http://bramp.github.io/js-sequence-diagrams/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment