Providers.Rest not working correctly. Traefik log: "Skipping empty Configuration for provider rest" providerName=rest"

Hi
I am currently trying to migrate from traefik v1.7 to the latest version. In version 1.7 we had [rest] enabled and we used it to reach /api/providers/rest. I am trying to achieve the same result with the latest version. I added [Provider.rest] insecure = true to enable rest but it is not working.
The traefik log : "Skipping empty Configuration for provider rest" providerName=rest"

Any help would do.
Thanks

My static config

[global]
  checkNewVersion = false
  sendAnonymousUsage = false

[serversTransport]
  insecureSkipVerify = true

[log]
  level = "DEBUG"

[api]
  insecure = true
  dashboard = true
  debug = true

[entryPoints.web]
  address = ":80"
  [entryPoints.web.http.redirections.entryPoint]
    to = "websecure"
    scheme = "https"

[entryPoints.websecure]
  address = ":443"
[entryPoints]
  [entryPoints.ping]
    address = ":8082"

[ping]
  entryPoint = "ping"

[providers]
  [providers.file]
    filename = "/etc/traefik/files/provider.toml"
[providers.rest]
    insecure = true

The traefik log

time="2020-08-14T07:04:07Z" level=debug msg="Configuration received from provider rest: {}" providerName=rest
time="2020-08-14T07:04:07Z" level=info msg="Skipping empty Configuration for provider rest" providerName=rest