Appearance
Base example (Quickstart)
This example demonstrates the common-base facility in action:
- OpenAPI YAML
- OpenAPI HTML
- component diagrams
- API diagrams
- datatype diagrams
Project:
👉 https://gitlab.com/joinedworkz/joinedworkz-quickstart
1. Model
cmn
type Greeting {
message*: String
}
resource /hello as Greeting {
create createHello()
read readHello()
}2. Generated artefacts
openapi.yamlopenapi.htmldiagram/components.htmldiagram/types.htmldiagram/api.html
Screenshots in the documentation show examples.
3. How to generate
sh
mvn clean installOpen the generated HTML files in your browser.
4. Next steps
- add more resources
- add pseudocode for process/call flow diagrams
- use with other facilities (Java, SpringBoot)
