How to use local provider

You might want to try using the one which was published to terraform registry. You can copy/paste the configuration section.

https://registry.terraform.io/providers/fmontezuma/restapi/latest