Add a protocol test for endpoints that contain path prefixes#845
Add a protocol test for endpoints that contain path prefixes#845adamthom-amzn merged 1 commit intosmithy-lang:mainfrom
Conversation
There was a problem hiding this comment.
PathOperation reads like an operation with path parameters. Maybe EndpointWithPathOperation? Or if that implies use of @endpoint trait like the couple of tests above, maybe HostWithPathOperation?
There was a problem hiding this comment.
| uri: "/custom/PathOperation", | |
| uri: "/custom/HostWithPathOperation", |
There was a problem hiding this comment.
Yeah, that was a bad miss.
There was a problem hiding this comment.
Can you flip this sentence around and say when it would a path, an example of what it looks like, and how it works with paths in operations? It's important to state that here since we aren't using the same URI resolution logic defined in RFC 3986.
For example:
hostMAY contain a path to indicate a base path from which each operation in the service is appended to. For example, given ahostofexample.com/foo/barand an operation path of/MyOperation, the resolved host of the operation isexample.comand the resolved path is/foo/bar/MyOperation.
5993114 to
fdc7ad0
Compare
Sometimes, a service will have a path prefix that is not modeled. This adds a test that ensures REST-JSON clients will properly take that path into account.
Description of changes:
Sometimes, a service will have a path prefix that is not modeled. This adds a
test that ensures REST-JSON clients will properly take that path into account.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.