Plugins basic-auth configure JSON

Good morning, I want to secure an API with the basic-auth plugin, I create consumer and users correctly, but I can not get a consumer to access the API, all consumers access all my APIs.

Thank you.

https://getkong.org/plugins/acl/

You need this plugin on (API || Service || Route) && Consumer

Thank you very much. You could point me out how to configure it through json.