[wp-trac] [WordPress Trac] #37182: Collections are not compatible to HAL standard

WordPress Trac noreply at wordpress.org
Wed Nov 2 02:40:15 UTC 2016


#37182: Collections are not compatible to HAL standard
--------------------------+----------------------
 Reporter:  maennchen     |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  REST API      |     Version:  4.4
 Severity:  normal        |  Resolution:  wontfix
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by rmccue):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 We intentionally deviated from the HAL specification here in favour of
 user ergonomics. It's a pain for regular clients to handle collections
 formatted in the HAL way, as it's not a simple add-on like with objects.
 This is annoying, but the reality that we have to deal with is that most
 clients aren't going to use a HAL parser.

 The combination of extra headers with a list in our current approach uses
 HTTP's standard for linking (the Link header) along with per-item links,
 which strikes a reasonable compromise.

 Marking this as wontfix, as it's a conscious decision not to follow the
 spec to the letter here.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37182#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list