[glotpress-updates] [GlotPress] #272: API should always return json data and never the 404 of GlotPress itself

GlotPress noreply at wordpress.org
Thu Nov 21 19:22:17 UTC 2013


#272: API should always return json data and never the 404 of GlotPress itself
---------------------------+--------------------------
  Reporter:  markoheijnen  |      Owner:  markoheijnen
      Type:  enhancement   |     Status:  closed
  Priority:  normal        |  Milestone:  1.0
 Component:  general       |    Version:  0.1
Resolution:  fixed         |   Keywords:
---------------------------+--------------------------

Comment (by nbachiyski):

 In the long-term, the current matching of web vs. API routes may not be
 ideal, but the first few API routes suggested that a parity would be OK.
 And the ease of adding matching API calls is worth the initial lack of
 flexibility, IMHO.

 If you want to add an API-only route, just add only an API template. In
 this case the web request will return an empty response (we should
 probably send back 404, but still).

--
Ticket URL: <http://glotpress.trac.wordpress.org/ticket/272#comment:7>
GlotPress <http://glotpress.trac.wordpress.org>
Easy comin', easy goin'


More information about the glotpress-updates mailing list