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
{{ message }}
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
I have an API that assigns an identifier to a resource during the POST request. In my *.apib file I am required to hard code this identifier in my expectations. This obviously does not work because the id changes with every POST. Is there a way to have dredd ignore API generated identifiers?
The text was updated successfully, but these errors were encountered:
Hi, this can be solved by using stash for responses in hooks and replacing desired value in transaction dynamically in before hook. Here is an example application using this pattern.
I have an API that assigns an identifier to a resource during the POST request. In my *.apib file I am required to hard code this identifier in my expectations. This obviously does not work because the id changes with every POST. Is there a way to have dredd ignore API generated identifiers?
The text was updated successfully, but these errors were encountered: