mozilla-magnet / magnet-services

Magnet services
Mozilla Public License 2.0
1 stars 1 forks source link

`search/url` endpoint response different length to request #29

Open wilsonpage opened 7 years ago

wilsonpage commented 7 years ago

If the API is called with 3 urls:

POST [url1, url2, url3]

and a match can only be found for one, the response is:

[url1]

This makes it difficult to map items responses back to item requests.

+@samgiles

wilsonpage commented 7 years ago

The response should be more like:

[{data}, {}, {}]

or

[{data}, false, false]
wilsonpage commented 7 years ago

After digging a little deeper it appear that maybe the response array only ever contains the first item.