Sequence diagram to REST API - donvadicastro/generator-xmi GitHub Wiki

Sequence diagram as REST API endpoint implementation

Each sequence diagram presented in model will be translated into individual REST API endpoint that can interact with system through POST method.

Example

Diagram

Sequence diagram

REST API contract

REST API

REST API call

curl -X POST "http://localhost:3000/api/v1/sequence" -H "accept: application/json"

--> initialize local state storage
--> c1::fn1: 1 ms
--> c2::fn2: 0 ms
--> c1::ret1: 0 ms
⚠️ **GitHub.com Fallback** ⚠️