Skip to main content

OpenAPI

Experimental
Creates:
Assets

Configure in the UI

This plugin can be configured directly in the Marmot UI with a step-by-step wizard.

View Guide

The OpenAPI plugin discovers API specifications from OpenAPI v3 files. It creates assets for services and their endpoints.

The plugin scans for .json and .yaml files and parses them as OpenAPI v3 specifications.

Example Configuration


spec_path: "/app/openapi-specs"
tags:
- "openapi"
- "specifications"

Configuration

The following configuration options are available:

PropertyTypeRequiredDescription
external_links[]ExternalLinkfalseExternal links to show on all assets
spec_pathstringfalsePath to the directory containing the OpenAPI specifications
tagsTagsConfigfalseTags to apply to discovered assets

Available Metadata

The following metadata fields are available:

FieldTypeDescription
contact_emailstringContact email
contact_namestringContact name
contact_urlstringContact URL
deprecatedboolIs this endpoint deprecated
descriptionstringDescription of the API
descriptionstringA verbose explanation of the operation behaviour.
external_docsstringLink to the external documentation
http_methodstringHTTP method
license_identifierstringSPDX license experession for the API
license_namestringName of the license
license_urlstringURL of the license
num_deprecated_endpointsintNumber of deprecated endpoints in the OpenAPI specification
num_endpointsintNumber of endpoints in the OpenAPI specification
openapi_versionstringVersion of the OpenAPI spec
operation_idstringUnique identifier of the operation
pathstringPath
servers[]stringURL of the servers of the API
service_namestringName of the service that owns the resource
service_versionstringVersion of the service
status_codes[]stringAll HTTP response status codes that are returned for this endpoint.
summarystringA short summary of what the operation does
terms_of_servicestringLink to the page that describes the terms of service