[wp-trac] [WordPress Trac] #40748: Use REST API for Community Events

WordPress Trac noreply at wordpress.org
Wed May 17 18:03:06 UTC 2017


#40748: Use REST API for Community Events
-------------------------------------------------+-------------------------
 Reporter:  iandunn                              |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  REST API                             |  Release
 Severity:  normal                               |     Version:  trunk
 Keywords:  has-patch dev-feedback needs-unit-   |  Resolution:
  tests                                          |     Focuses:  javascript
-------------------------------------------------+-------------------------

Comment (by jnylen0):

 I think we should keep the schema from [attachment:40748.diff].  Even if
 this is an internal-only endpoint, one of the strengths of the REST API is
 that it provides a standardized way to describe request and response
 formats.

 In this case it's really helpful for developers that want to use this
 endpoint, whether that's core developers or someone writing a plugin to
 add more functionality later on.  Adding a schema also sets a good example
 for future work.

 I don't have a preference on namespace between `dashboard/v1` and `wp-
 dashboard/v1`, just that the namespace contains exactly one slash.  I also
 think we should document this more explicitly and deprecate registration
 of endpoints that do not follow this pattern.

 Finally, agreed that this needs unit tests.

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


More information about the wp-trac mailing list