How to get data from localhost:8080 to Metricbeat?

something like this?

metricbeat.modules:
- module: http
  metricsets: ["json"]
  enabled: true
  period: 10s
  hosts: ["localhost:8080"]
  namespace: "metrics"
  path: "/api/session/login"
 # body: ""
  method: POST
  username: "admin"
  password: "somepassword"
  request.enabled: true
  response.enabled: true
  #json.is_array: false
  #dedot.enabled: false
  #
- module: http
  metricsets: ["json"]
  period: 10s
  hosts: ["localhost:8080"]
  namespace: "metrics"
  path: "/api/dashboard/backup-destination-stats"
 # body: ""
  method: "GET"
  username: "admin"
  password: "vPr0tect"

now I have no data to show...