ssentiago2k downloadsIntegrate OpenAPI specification management with features for version control, visualization, editing, and easy navigation of API specs.
Integrate OpenAPI specification management into Obsidian with features for version control, visualization, editing, and easy navigation of API specs.
I once wrote documentation for my small project directly in Obsidian while working on the database. Later, I needed to work with API documentation, so I started looking for suitable solutions among Obsidian plugins. Not finding any good options, I decided to create a plugin that allows writing Swagger UI documentation directly in Obsidian, without the need to switch between different applications. I hope I’ve managed to create something useful. If you have any suggestions for improvement, feel free to leave any issues here!
. obsidian/plugins/openapi-renderer
directory
(create it if it doesn’t exist)Settings -> Community plugins, click on Browse button and search for
OpenAPI Renderer. Install itNote: You need to enable the Detect all file extension option in Settings -> Files and Links.
By default, this plugin processes all files with .yaml or .json extensions as OpenAPI specifications. When you open any YAML or JSON file in Explorer, it will open in OpenAPI View and be treated as an OpenAPI specification. You can configure this behavior in plugin settings: OpenAPI View -> Register YAML and JSON for processing by default?.
The plugin has 4 main functions:
Versioning and overview are optional features - you don't have to use them if you don't need them. The core functionality is editing and rendering.
There are two ways to open the view for editing or previewing specifications:
Register YAML and JSON for processing by default? is enabled)Open in OpenAPI ViewBoth methods will open the OpenAPI View, which has two modes:
How it looks:
Available actions in the top actions bar:
You can access this mode in two ways:
This mode allows you to save and roll back to any version of your specifications. You can export versions as HTML and view differences between any two versions of a file.
The Version View interface is divided into two parts:
How it looks:
Draft version is your current "raw" version from the file, not yet saved. You can save it to the Version list, preview it, and open it in OpenAPI View.
Version list shows your specification versions and groups your specification versions by time periods like "today", "yesterday", etc.
Available actions for each version:
Top bar actions:
Access this view by clicking the "Open OpenAPI Entry View" button on the ribbon panel.
This view provides a convenient interface to manage all specifications registered for tracking.
How it looks:
When you open the view, you'll see the "Home" page. Click the "Browse" button in the top navigation bar to see your files.
The browse page displays specification files as cards in a grid layout. Each card shows the last update time and number of registered versions for that file.
Available actions for each card (click the 'Plus' button to open):
Top bar actions:
Special thanks to mnaoumov for valuable insights and contributions, which greatly supported the development of this plugin.
If you encounter any bugs or unexpected behavior, please open an issue on GitHub. If you want to offer a new feature, feel free to suggest.
Your involvement makes the plugin better for everyone.