- Start Date: 2015-11-27
- RFC PR: #26
This RFC proposes we add a hrefVariables attribute to the httpRequest and
change href to become a Templated Href instead of a Href.
From the perspective of tools such as testing, mocking, proxy, routing and validation it may be required that these tools have access to the unexpanded URI template with variables.
Currently the httpRequest element contains a href attribute as follows:
href(Href) - A concrete URI for the request. The href SHOULD be inherited from a parent transition by expanding the href and hrefVariables if unset.
These proposed changes would change the meaning of the href attribute
to become:
href(Templated Href) - URI Template for this HTTP request. ThehrefandhrefVariablesSHOULD be inherited from a parent transition. Whenhrefis set, you MAY also sethrefVariables.
While introducing a new hrefVariables attribute:
hrefVariables(Href Variables) - Definition of URI Template variables used in thehrefproperty.
This is a backwards incompatible change and thus can break existing implementations.
As an alternative, we can keep httpRequest element as it is, however tooling
will not be able to make use of the unexpanded href.