You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When downloading the OpenAPI specification for my API the requests and variables are automatically included.
When opening the specification in Postman, there is even a Tests-code snippet inside the JWT-Request (see screenshot (1))
When manually adding Logic in Postman to the collection (2), everytime I download a new updated version of the OpenAPI specification all custom code and variables would be gone, obviously because api-platform doesn't know about.
Q: Is there a way, to add custom Pre-Request Scripts/Variables/Tests/.. in the API config to be included in the downloadable OpenAPI specification?
(1) This code is already included automatically in the openAPI spec
(2) Can I modify/add more code, to be included in newly generated specs as well?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When downloading the OpenAPI specification for my API the requests and variables are automatically included.
When opening the specification in Postman, there is even a
Tests
-code snippet inside the JWT-Request (see screenshot (1))When manually adding Logic in Postman to the collection (2), everytime I download a new updated version of the OpenAPI specification all custom code and variables would be gone, obviously because api-platform doesn't know about.
Q: Is there a way, to add custom
Pre-Request Scripts
/Variables
/Tests
/.. in the API config to be included in the downloadable OpenAPI specification?Beta Was this translation helpful? Give feedback.
All reactions