Skip DELETE operation in all the controllers #656
Replies: 6 comments
-
hi @PraveenSuryaNarayanaMoorthy That is not straight forward.The easiest way would be to generate 2 postman, using the filtering option. |
Beta Was this translation helpful? Give feedback.
-
Hi @thim81 , using tags we can filters the controllers/entities but how can we filter the HTTP methods?? below is my oas-format-filter file methods: []
tags: []
operationIds: []
operations:
- *::/v2/regulations*
- *::/v1/vehicle-types*
- *::/v2/systems*
- *::/v2/ecus* |
Beta Was this translation helpful? Give feedback.
-
That is simple: methods:
- delete
tags: []
operationIds: []
operations:
- *::/v2/regulations*
- *::/v1/vehicle-types*
- *::/v2/systems*
- *::/v2/ecus* The whole list of supported options can be found here This will filter out the OpenAPI operations with the delete methods |
Beta Was this translation helpful? Give feedback.
-
@thim81 , thanks it works. Also, is there any way to execute a certain methods twice in a controller execution? |
Beta Was this translation helpful? Give feedback.
-
You can use Newman iterations, which will run the sequence of all Postman requests. I assume you want to execute a certain request multiple times, first a POST > GET > PUT > GET |
Beta Was this translation helpful? Give feedback.
-
Or another way is to use https://learning.postman.com/docs/collections/running-collections/building-workflows/ |
Beta Was this translation helpful? Give feedback.
-
Hi All ,
I have the below operations by default when I'm running portman it run for all the controllers in the the list, how I can skip the DELETE operartion for all the controllers and execute DELETE once other operations in all the controllers are over.
orderOfOperations:
- 'POST::/v1*'
- 'GET::/v1*'
- 'PUT::/v1*'
- 'PATCH::/v1*'
- 'DELETE::/v1*'
Beta Was this translation helpful? Give feedback.
All reactions