Skip to main content

How to Extract Out a Few Swagger/OpenAPI APIs into another document

Extracting out a few APIs comes handy when you’re documenting something about a specific API on Confluence or if you have an API Gateway that has only exposed a few of the APIs from your application. openapi-filter ( can be used to extract out these APIs from your swagger/openapi document. Mark the APIs that you want to extract out with the following flag: x-internal: true. For example, openapi: 3.0.0 info: title: API version: 1.