-
Context : We have a yml file where our whole API are defined, but some of the endpoint are strictly accessible for some user (for example admin endpoint etc). Is it possible with a portman config to decide which endpoint include in the generated postman collection ? It could automatically filter the classic "x-internal: true" ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Ok sorry, I double checks on the docs and there is an option for this defined here "filterFile": "./examples/cli-filtering/oas-format-filter.json", where you can add filters |
Beta Was this translation helpful? Give feedback.
-
Hi @cfrapper Portman leverages openapi-format for filtering capabilities, which supports filtering on: Operation ID, path, tags, ... Have a look at the filter example for more details >> https://github.com/apideck-libraries/portman/tree/main/examples/cli-filtering |
Beta Was this translation helpful? Give feedback.
Ok sorry, I double checks on the docs and there is an option for this defined here
portman/examples/cli-filtering/oas-format-filter.json
Line 1 in 38a07af
"filterFile": "./examples/cli-filtering/oas-format-filter.json",
where you can add filters