Paste an OpenAPI 3.x schema, pick the endpoints you want, and export a trimmed schema with only the paths and components they reference.
openapi.json