Discussions

Ask a Question
Back to All

Search part of name

Is there any way you can make the API format able to search an individual queen by part of the name? For instance, most people will just type "Katya" in the input considering most people don't know how to spell Zamolodchikova lol. When I just type "Katya", it comes back in the console as an empty array.

I used http://www.nokeynoshade.party/api/queens?name=${id}

Of course ${id} is just the query selector for the input.

I'm not sure why it added "}" after id when I posted the comment, but ignore that part lol.

Wow lol. Well considering I can't edit or delete the comment, just ignore that since it changed the comment one to a curly bracket like it should have in the original question lol.

Anyway, please help XD.

Admin

hey, sorry I never got back to you I am embarrased! Unfortunately I am not going to be changing any of the code right now. If you wanted to fork the repo and make a PR to change I can review it and we can try it out. I am going to soon start to re-work things to make this more of an open source API that allows folks to contribute more easily.

ο»Ώ