Skip to content

Instantly share code, notes, and snippets.

@kinlane
Created August 4, 2021 00:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kinlane/e156b91b1206b86e5f84e73c2225bcc0 to your computer and use it in GitHub Desktop.
Save kinlane/e156b91b1206b86e5f84e73c2225bcc0 to your computer and use it in GitHub Desktop.
OpenAPI Lifecycle Extension
# 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 development
- name: Development
url: 'https://www.postman.com/environment'
variables:
base_url: 'http://example.com/development'
api_key: 'xe3847d3J78393jkdm1123'
# 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'
# Essential Building Blocks of the API Lifecycle
buildingBlocks:
# All Documentation
documentation:
# Reference Documentation
- type: reference
title: Reference Documentation
url: 'https://example.com/documentation'
collection: 'https://www.postman.com/collection'
# Workflow Documentation
- type: workflow
title: Workflow Documentation
url: 'https://example.com/documentation'
collection: 'https://www.postman.com/collection'
# All Tests
tests:
- type: contract
title: Contract Testing
url: 'https://example.com/contract-testing'
collection: 'https://www.postman.com/collection'
- type: performance
title: Performance Testing
url: 'https://example.com/performance-testing'
collection: 'https://www.postman.com/collection'
- type: security
title: OWASP Top 10
url: 'https://example.com/owasp-security-testing'
collection: 'https://www.postman.com/collection'
# All Mocks
mocks:
- type: sandbox
title: Mock Server
url: 'https://example.com/mock'
collection: 'https://www.postman.com/collection'
# All Monitors
monitors:
- type: uptime
title: Uptime Monitor
url: 'https://example.com/monitor'
collection: 'https://www.postman.com/collection'
environment: 'https://www.postman.com/environment'
- type: performance
title: Regional Performance Monitor
url: 'https://example.com/monitor'
collection: 'https://www.postman.com/collection'
environment: 'https://www.postman.com/environment'
# All Reports
reports:
- type: overview
title: Dashboard
url: 'https://example.com/monitor'
collection: 'https://www.postman.com/collection'
# Milestones for the API
milestones:
# Design
- type: design
description: 'Design agreed upon by stakeholders.'
date: '2021-05-01'
# Review
- type: review
description: 'Wentn through architectural review.'
date: '2021-06-01'
# Staging
- type: staging
description: 'Left staging phase of development.'
date: '2021-07-01'
# Active
- type: active
description: 'Put into production as active API.'
date: '2021-07-15'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment