valarao / chocolate-thunder-chess

Allow chess players to search through 1,000+ common opening positions.
MIT License
2 stars 2 forks source link

47 get position endpoint by string matching #59

Closed austincho closed 3 years ago

austincho commented 3 years ago

Overview

The changes in the PR include creating endpoints so that the client is able to get common positions during application load and also an endpoint to search for positions. This resolves issues #47 and #48 and unblocks #43 and #42. The most common positions are calculated by aggregating how many variant openings a base opening has and we take the top 9 of the results.

e.g. http://localhost:5000/api/positions/search?filter=english+opening http://localhost:5000/api/positions/common-positions

Future TODOs