-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
source-http-ingest: support path parameters
Introduces support for capturing path parameters from incoming requests. The paths in the endpoint config are now allowed to specify parameters using the OpenAPI syntax. For example, the path `/vendors/{vendorId}/products/{productId}` can now be used to extract the `vendorId` and `productId`, which will be added to a `/_meta/pathParams` JSON object. The OpenAPI syntax was chosen because it's well-known and documented, and because it's simple and limited. This makes it easy to parse and less likely to result in surprising behavior. The syntax is documented at: https://swagger.io/docs/specification/v3_0/paths-and-operations/#path-templating The `/_meta/reqPath` property was also added in order to record the configured path at which the request was handled.
- Loading branch information
Showing
9 changed files
with
330 additions
and
53 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.