Currently, the search
endpoint returns a simple JSON list of results:
[
{ blah },
{ foo }
]
This doesn't leave any room for the API to communicate additional information about the search (or, perhaps, return an error message etc).
It might, perhaps be better to change that to be more like
{
"results" : [
{ blah },
{ foo }
]
}
So that additional attributes can be added at the top-level
Activity
07-Jan-24 11:12
assigned to @btasker
07-Jan-24 11:13
This, obviously, would be backwards incompatible.
I don't currently have a pressing need for this change. But, currently, I am definitely the only user of the codebase - it's probably better to make this change now (and set us up for any future need) than to find it's needed later only to find that someone else has started using it.
07-Jan-24 11:56
changed title from Nest results with the API Response Format to Nest results with{+in+} the API Response Format
07-Jan-24 12:00
mentioned in commit 88e9b44edff377fe9c56e8cbe9737f83fe3ffb96
Message
feat: nest results one attribute down in JSON responses (utilities/file_location_listing#38)
07-Jan-24 17:11
mentioned in commit search_notes@4ffa33d18b6789cae13024e69162cb7f02cbf603
Message
Update
search_locations.py
to reflect API changes in utilities/file_location_listing#3807-Jan-24 17:42
mentioned in issue #39