snac-cooperative / snac

SNAC Server with WebUI and RestAPI
Other
5 stars 3 forks source link

SNAC API "search" with entity_type = corporateBody yields in no results #298

Closed DiegoPino closed 3 years ago

DiegoPino commented 3 years ago

Describe the bug When calling the API using this

body:

{"command":"search","term":"IBM","entity_type":"corporateBody","start":0,"count":10}

No results come back. personal and family work well

To Reproduce Use curl and call

curl https://api.snaccooperative.org -XPUT -H "Content-Type: application/json"  --data '{"command":"search","term":"IBM","entity_type":"corporateBody","start":0,"count":10,"search_type":"autocomplete"}' 

You will get no results.

Expected behavior Same as with person or family we should see results

Screenshots Does not apply

Browser Does not apply

glassjoseph commented 3 years ago

Thanks for the bug report. Looks like it was a few lines of code that were incompatible with a recent package upgrade. Should be fixed now by #299!

DiegoPino commented 3 years ago

@glassjoseph thanks so much!