PostCrash: Difference between revisions

Jump to navigation Jump to search
638 bytes added ,  3 February 2011
Line 69: Line 69:
*# If a canonical article exists for crash_signature (top search result), return the title and URL
*# If a canonical article exists for crash_signature (top search result), return the title and URL
*# Else if other search results exist for crash_signature (e.g. forum threads), return URL to search results
*# Else if other search results exist for crash_signature (e.g. forum threads), return URL to search results
* Should be available sometime the week of March 14th.
=== API ===
Discussed with Laura and came up with this API. Ping jsocol if changes are necessary.
GET /some/url/<sig>
or
GET /some/url?sig=<sig>
(opinions?)
Return values:
HTTP/1.0 200 OK
Content-type: text/plain;charset=utf8
http://support.mozilla.com/...
or
HTTP/1.0 404 Not Found
We'll set <code>Expires:</code> and/or <code>Cache-control: max-age=###</code> headers so repeated requests should bounce off Zeus, though conditional <code>GET</code> is still encouraged. :)
We'll only return English articles for now. In the future we can make this locale-aware.


=Timeline=
=Timeline=
664

edits

Navigation menu