-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wip: stub server update docs #315
base: master
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for docs-pactflow-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -43,6 +42,8 @@ Stub URLs will have one of the following formats: | |||
| Description | URL | | |||
| ----------- | --- | | |||
| Latest for integration | `/pacts/provider/:provider/consumer/:consumer/latest/stub` | | |||
| Latest for a given environment | `/pacts/provider/:provider/consumer/:consumer/latest/environment/:environment/stub` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is captured in a new story. It makes sense to do it now I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few minor changes to be done and it's good.
|--------|------|-------------|---------| | ||
| `pactflow-stub-cors` | boolean | Automatically responds to OPTIONS requests and return default CORS headers. For more on CORs, refer to the [section](#cors) below. | `true` | | ||
| `pactflow-stub-cors-referer` | boolean | When set to `true`, sets the CORS origin value to the hostname of the referer URL. If set to `false`, or if there is no referer header, sets it to '*". | `false` | | ||
| `pactflow-stub-provider-state` | string | Provider state regular expression used to filter the responses. | n/a | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rholshausen what if you have an interaction with multiple provider states. Can you provide multiple values to this header?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But you can write a regex that matches more than one, i.e. state (one|two)
will match state one
or state two
No description provided.