bcgov / bc-emli-pin-mgmt-be

BC Virtual Home Energy Rating PIN Management System Backend
Apache License 2.0
1 stars 0 forks source link

BVPS-335: Add address score endpoint (and thresholds) for demonstration purposes #105

Closed hannah-macdonald1 closed 10 months ago

hannah-macdonald1 commented 10 months ago

This PR adds 2 endpoints, /pins/score and /pins/thresholds. These are for the purpose of showing off the address match functionality, and are not meant to be permanent. Both require api key authentication.

The score endpoint accepts the same parameters as the /pins/vhers-create and /pins/vhers-regenerate endpoints, but does not update the pin. Instead it shows the best matching pin and its score. The thresholds endpoint simply displays the current weights, thresholds, and fuzzy match coefficients.