Open nchapman opened 9 years ago
What's this?
"extractedFaviconColor": "{\"204\",\"0\",\"2\"}",
Looks like a weird string representation of a... something that isn't quite an object or array.
Another field to check: looks like it's url
in the search endpoint and rawUrl
for userPage in visits.
@nchapman Do you want to convert this to a more general "things to fix in the API" bug? If so, maybe we fold this under #222?
wherever the list of grievances winds up, we should really not be forcing the front-end to do stuff like
if (response && response.results && response.results.hits) {
So we need to simplify the search response to return an object with (1) some metadata, and (2) a results object that contains well-defined Visit or UserPage datatypes
The
/v1/visits
endpoint includes the screenshot URL as part of the visit rather than the embeddeduserPage
. It should be moved into theuserPage
and renamed fromscreenshot_url
toscreenshotUrl
. The/v1/search
endpoint correctly embeds the screenshot URL in the user page data, but it should also be renamed toscreenshotUrl
.Example of the current json: