Repository navigation
Update example response for public JSON petition search API endpoint - #198
Conversation
…meta: current_page and new attributes: categories, activity_score
woodhull
left a comment
There was a problem hiding this comment.
I approve this docs update.
Separately, and not in a way that disrupts this work, i wanted to wonder outloud if the search endpoint should be cursor paginated, but then I decided that it likely had many fewer pages and was backed by elasticsearch so this perf concern we've been fighting elsewhere in the API is potentially not relevant.
Hmm, interesting question! Since search results are sorted by "relevance" rather than |
This updates the example response for the
/petitions/searchendpoint to reflect new fields that have been added as part of the search page redesign:current_pagein themetasectionWhile I was here, I went through and checked that this example reflects all the current fields in the JSON. It does, except that we're not showing an example of the
imagefield (which is only included when the petition has an image). So I added animageto one of the petitions in the example response.