Wykres commitów

6 Commity (74218a7e43f59b329cd7cd890245bcc2764beb3a)

Autor SHA1 Wiadomość Data
Karl Hobley 17f7f70170 Added "find" API view and ability to find pages by HTML path
This implements a new "find" view for all endpoints which can be used
for finding an individual object based on the URL parameters passed to
it.

If an object is found, the view will return a ``302`` redirect to detail
page of that object. If not, the view will return a ``404`` response.

For the pages endpoint, I've added a ``html_path`` parameter to this
view, this allows finding a page by its path on the site.

For example a GET request to ``/api/v2/pages/find/?html_path=/`` will
always generate a 302 response to the detail view of the homepage. This
uses Wagtail's internal routing mechanism so routable pages are
supported as well.

Fixes #4154
2018-04-13 12:08:19 +01:00
Karl Hobley a9b4b09152 Fix spelling mistakes in documentation 2018-04-05 12:13:05 +01:00
Matt Westcott aebb69a2ba Remove dead links to API v1 docs 2017-11-03 17:03:57 +00:00
Matt Westcott 21f1292cf7 Reinstate underscore in fields param, as per 40842fe8bf (commitcomment-21183519) 2017-03-07 11:03:30 +00:00
jacoor 40842fe8bf typo fix 2017-03-07 10:48:30 +00:00
Karl Hobley ebe597610e API v2 docs (#2940) 2016-09-22 11:15:18 +01:00