Skip to content

Instantly share code, notes, and snippets.

@kinlane
Last active August 6, 2021 03:19
Show Gist options
  • Save kinlane/ffa225271e3e59bace484b83382a94d9 to your computer and use it in GitHub Desktop.
Save kinlane/ffa225271e3e59bace484b83382a94d9 to your computer and use it in GitHub Desktop.
OpenAPI Lifecycle Extension (v.0.2) - Basic
# An extension for OpenAPI
x-lifecycle:
# Navigating Change
version:
current: 'http://example.com/next'
next: 'http://example.com/next'
previous: 'http://example.com/next'
# Development
# Staging
# Production
environments:
# Environment for production
- name: Production
url: 'https://www.postman.com/environment'
variables:
base_url: 'http://example.com/production'
api_key: 'xe3847d3J78393jkdm1123'
# Design
# Pre-Release
# Active
# Recommended
# Retired
# Deprecated
maturity: 'Active'
# Public
# Internal
# Group
# Partner
visibility: 'Public'
# Elements of the API Lifecycle
elements:
# Documentation
documentation:
label: Docs
guidance: http://example.com/guidance
elements:
# Reference Documentation
- type: reference
title: Reference Documentation
url: 'https://example.com/documentation'
collection: 'https://www.postman.com/collection'
# All Tests
tests:
label: Testing
guidance: http://example.com/guidance
elements:
- type: contract
title: Contract Testing
url: 'https://example.com/contract-testing'
collection: 'https://www.postman.com/collection'
# All Monitors
monitors:
label: Monitors
elements:
- type: contract
title: Contract Testing Monitor
url: 'https://example.com/monitor'
collection: 'https://www.postman.com/collection'
environment: 'https://www.postman.com/environment'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment