-
-
Notifications
You must be signed in to change notification settings - Fork 348
Commit 1ff04ce
Support URI input with "hrefSchema"
In Draft 05, "method" simply controlled whether link input was placed
in the URI (for a value of "get") or in the request body (for a value
of "post"). While correlating with HTML, this was both confusing due
to "get" and "post" not necessarily indicating the HTTP methods of the
same name, and limiting in that users/clients could not submit data
through both the URI and the request body at the same time.
This introduces "hrefSchema" which provides a schema for user input
matching the "href" URI Template variables. Since "schema" is now
only used in the cases where "method" was set to "post" in Draft 05,
there is no longer a need for "method".
A link with a "schema" is equivalent to a Draft 05 "post" link.
A link without a "schema" is equivalent to a Draft 05 "get" link.
As in Draft 05, a "get" link simply indicates the presence of
a related resource, and does not mean that HTTP GET is the only
method that can be used with the resource.
Additionally, the complex and apparently rarely if ever used "href"
preprocessing rules have been removed, and both the resulting and
pre-existing limitations have been documented. They will be the
subject of work for future drafts.
The meta-schemas have been updated accordingly.1 parent a43ed2c commit 1ff04ce
File tree
3 files changed
+201
-175
lines changed3 files changed
+201
-175
lines changedLines changed: 8 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 | - | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
22 | 27 |
| |
23 | 28 |
| |
24 | 29 |
| |
| |||
36 | 41 |
| |
37 | 42 |
| |
38 | 43 |
| |
39 | - | ||
40 | - | ||
41 | - | ||
42 | - | ||
43 | 44 |
| |
44 | 45 |
| |
45 | 46 |
| |
| |||
96 | 97 |
| |
97 | 98 |
| |
98 | 99 |
| |
99 | - | ||
100 | + | ||
101 | + | ||
100 | 102 |
| |
101 | 103 |
| |
102 | 104 |
| |
|
0 commit comments