lidofinance / lido-keys-api

Api for fetching node operators keys from modules
MIT License
19 stars 15 forks source link

fix: remove redundant param from endpoint #273

Closed AlexanderLukin closed 5 months ago

AlexanderLukin commented 6 months ago

The v1/modules/:module_id/keys endpoint can accept only two query params (used and operatorIndex) that it uses to filter keys from the output. But previously public interface of this endpoint incorrectly stated that it also can accept the moduleAddresses param. It doesn't make sense, because module ID is specified in the :module_id URL param for this endpoint.

Now the moduleAddresses search param has been removed from the public interface of the endpoint.

AlexanderLukin commented 6 months ago

UPD.

Remove unnecessary moduleAddresses query param from all endpoints where it was declared, but not used. These endpoints are: /v1/modules/keys /v1/modules/:module_id/keys v1/modules/:module_id/operators/keys