1
0
mirror of https://github.com/go-acme/lego.git synced 2024-12-23 09:15:11 +02:00
lego/providers/dns/easydns/internal
2024-03-03 15:41:55 +01:00
..
fixtures easydns: fix zone detection (#2121) 2024-03-03 15:41:55 +01:00
client_test.go easydns: fix zone detection (#2121) 2024-03-03 15:41:55 +01:00
client.go easydns: fix zone detection (#2121) 2024-03-03 15:41:55 +01:00
readme.md easydns: fix zone detection (#2121) 2024-03-03 15:41:55 +01:00
types.go easydns: fix zone detection (#2121) 2024-03-03 15:41:55 +01:00

The API doc is mainly wrong on the response schema:

ex:

  • the doc for /zones/records/all/{domain}
{
  "msg": "string",
  "status": 200,
  "tm": 1709190001,
  "data": {
    "id": 60898922,
    "domain": "example.com",
    "host": "hosta",
    "ttl": 300,
    "prio": 0,
    "geozone_id": 0,
    "type": "A",
    "rdata": "1.2.3.4",
    "last_mod": "2019-08-28 19:09:50"
  },
  "count": 0,
  "total": 0,
  "start": 0,
  "max": 0
}
  • The reality:
{
  "tm": 1709190001,
  "data": [
    {
      "id": "60898922",
      "domain": "example.com",
      "host": "hosta",
      "ttl": "300",
      "prio": "0",
      "geozone_id": "0",
      "type": "A",
      "rdata": "1.2.3.4",
      "last_mod": "2019-08-28 19:09:50"
    }
  ],
  "count": 0,
  "total": 0,
  "start": 0,
  "max": 0,
  "status": 200
}

data is an array. id, ttl, geozone_id are strings.