This is a command line tool to produce a human-readable representation of an OpenAPI Arazzo file. Output is available in Markdown or Mermaid format.
Use this tool to create a representation for summary purposes during development, or to include in your own documentation.
Feedback and feature requests are welcome on the main project repo (note: not the GitHub mirror!): https://codeberg.org/lornajane/apitapviz
This is a Python project, using uv.
-
Clone the repository to your machine.
-
Run
uv sync. -
Run the command with an Arazzo file:
uv run main.py arazzo.yaml
Command format: main.py [-h] [--format FORMAT] arazzo.yaml
-hfor the help output.--formatcan bemarkdownormermaid.- Supply a valid OpenAPI Arazzo file in YAML format.
Currently the tool supports Mermaid and Markdown format outputs.
The markdown output lists each step with some supporting data.
## Blog workflows
### 1: getCategories
Fetch the category list
- Operation: `$sourceDescriptions.blog.getCategories`
- Outputs: category_id
### 2: savePost
Create the blog post
- Operation: `$sourceDescriptions.blog.createPost`
- Outputs: post_id
### 3: addImage
Upload the image
- Operation: `$sourceDescriptions.blog.uploadFeaturedImage`
The Mermaid diagram shows summary information for each flow; both the source and result are shown below:
---
title: Blog workflows
---
graph TD
get_categories["getCategories"]
save_post["savePost"]
add_image["addImage"]
get_categories ---> save_post
save_post ---> add_image
---
title: Blog workflows
---
graph TD
get_categories["getCategories"]
save_post["savePost"]
add_image["addImage"]
get_categories ---> save_post
save_post ---> add_image